Aggregations and WITH

WITH = the pipeline operator. Aggregations = count / collect / sum / avg.

0/2 done

Pipelines + aggregations

WITH = '|' for Cypher

WITH separates the query into stages. Anything you want to use after a WITH must be explicitly listed in the WITH — variables not listed go out of scope.

Aggregations (count, collect, sum, avg, min, max) implicitly group by the non-aggregated keys in the same RETURN/WITH — the same rule as SQL without writing GROUP BY.

Reading in progress · 0 of 2 activities done