How Many Inspections Were Actually Completed?

Filter bound properties and aggregate at the intended grain, distinguishing paths, relationships and distinct inspection identities.

12 sections · 4 questions · 1 coding challenge

1 / 12

Graph Matches Still Produce Rows That Need a Grain

BOTIE

Pattern matching can produce many binding rows from one starting node. Cypher combines those rows using aggregate functions and explicit intermediate stages such as WITH. The result depends on what is counted and which bindings remain as grouping keys.

Our duplicate link shows the practical consequence. The graph can contain two matched relationships while representing one inspection entity. Counting the entity once requires an identity-based duplicate policy.

Sources for this history