MATCH and RETURN

The read primitive — bind a pattern, return what you need.

0/3 done

Read in two clauses

MATCH / RETURN

Reading from Neo4j is two steps:

  1. MATCH a pattern. The engine binds variables to every part of the graph that fits the shape.
  2. RETURN the variables (or expressions on them) you actually want.

RETURN supports AS alias, DISTINCT, ORDER BY, SKIP and LIMIT — basically the SELECT clause of SQL.

Reading in progress · 0 of 3 activities done