Skip to Content

Vertex data type

A vertex (also known as a node) is a fundamental data type in Cypher that represents an entity in a graph database. Each vertex can have:

  • A unique identifier of BIGINT type.
  • A label of VARCHAR type, that describes its type or category.
  • A set of properties that store its attributes

Vertex operations

Accessing vertex properties

You can access vertex properties using dot notation:

-- Return specific properties MATCH (p:Person) RETURN p.name, p.age; -- Return the entire vertex MATCH (p:Person) RETURN p;

Accessing vertex id and label

Use vertex functions to access vertex id and label.

Last updated on