Skip to Content
CypherFunctionsScalar functions

Scalar functions

id()

Signature:

id(vertex: VERTEX) -> BIGINT

Returns the id of vertex.

Example:

MATCH (a) RETURN id(a)

label()

Signature:

label(input: VERTEX | EDGE) -> VARCHAR

Returns the label of vertex or edge.

Example:

MATCH (a) RETURN label(a)

start_node_id()

Signature:

start_node_id(edge: EDGE) -> BIGINT

Returns the id of the start node of edge.

Example:

MATCH (a)-[r]->(b) RETURN start_node_id(r)

end_node_id()

Signature:

end_node_id(edge: EDGE) -> BIGINT

Returns the id of the end node of edge.

Example:

MATCH (a)-[r]->(b) RETURN end_node_id(r)
Last updated on