2.5 · Lesson

Pipelining with WITH

In Full definition for Cypher (opens in a new tab)Neo4j'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 Full definition for aggregation (opens in a new tab)Grouping rows and computing a value over each group. In Cypher the grouping keys are whatever expressions in the same clause are not aggregated..