Cypher reference
InvariantDB speaks openCypher, with bitemporal extensions. This is the shape of the common reads, writes, time-travel queries and procedure calls — the full covered surface is in the docs, and the part that isn’t covered is listed there too.
Match, filter, return
Supports WITH for multi-stage pipelines, OPTIONAL MATCH, predicates (=, <>, STARTS WITH, CONTAINS, =~ regex, IN), quantifiers (ANY/ALL/NONE/SINGLE), and shortestPath / allShortestPaths.
Create, merge, set, delete
Plain DELETE refuses a node that still has relationships; DETACH DELETE removes them first. Deletes are bitemporal — the record ends as of now, and its past versions stay in history.
The two clocks, in the query
Every property carries a valid time (true in the world) and a recorded time (known to the engine). Add a time clause to a read and every top-level match rewinds to that moment.
Procedures complement the inline syntax: db.history(id), db.propertyHistory(id, 'prop'), db.changes(label, prop, from, to), db.delta(seqA, seqB), db.changeRate(label, windowSecs). A past read is answered completely or refused — never silently partial.
Group, collect, comprehend
One rule for every CALL
Every procedure — db.*, gds.*, any namespace — is invoked the same way. There is no special-casing.
Three gotchas account for almost every “procedure won’t run”:
1Missing CALL
Without the leading CALL, gds.vectorSearch(…) parses as a property access and chokes. Always lead with CALL.
2A bare procedure in RETURN/WITH
Procedures are clause-level, not expressions. Drive the projection from the CALL’s yielded columns, not RETURN gds.vectorSearch(…).
3YIELD with no RETURN
It parses and runs, but the response has zero columns — add a RETURN so the yielded columns reach the client. (A bare CALL with no YIELD is fine for void procedures.)
Vectors, text, and what the planner did
EXPLAIN ANALYZE adds real timing. Indexes back point lookups and MERGE keys; without one, a keyed match degrades to a label scan.
Structured, with a subcode
Errors come back as a structured envelope with a stable code and a specific subcode, so a client branches on the subcode rather than parsing a message — e.g. CONDITION_FAILED, READ_SET_CHANGED, TEMPORAL_READ_LIMIT, FULLTEXT_INDEX_NOT_FOUND. Each says whether a retry can help.