3.1 · Lesson

Adding Values

This video was recorded using an earlier version of the sandbox (Neo4j 4.x). You are using a Neo4j 5.x sandbox for this course. The last code example has changed to add a WITH clause for sum().

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. sum() returns the sum of all values retrieved during aggregationGrouping rows and computing a value over each group. In Cypher the grouping keys are whatever expressions in the same clause are not aggregated.. The values must be numeric types or durations. If the numeric values are a combination of integers and floats, the result returned is a float.