Keep the Pumps That Have No Completed Inspection

Use optional graph patterns without losing the starting population or mistaking an unmatched placeholder for a real inspection.

13 sections · 4 questions · 1 coding challenge

1 / 13

Absence Became a Result Worth Preserving

BOTIE

Cypher OPTIONAL MATCH extends pattern matching with NULL bindings when the requested pattern has no match. This resembles an outer join: existing input rows can survive without a related record.

That behaviour lets an asset register define the report population. A missing completed inspection is then visible as absence, instead of causing the asset itself to disappear.

Sources for this history