2.5 · Lesson

Pipelining with WITH

In CypherNeo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it., the WITH clause is used to:

  1. Chain parts of a query together.
  2. Control query flow.
  3. Aggregate data and pass it to the next part of the query.
  4. Filter results after aggregation.