Clauses
The Cypher language enables users to perform standard database operations by using the following clauses:
ALTER
- alter existing definitions of enumsCALL
- calls a subquery inside the queryCASE
- allows the creation of conditional expressionsCREATE
- creates new nodes and relationshipsDELETE
- deletes nodes and relationshipsDROP GRAPH
- delete all the data, along with all the indices, constraints, triggers, and streamsEXPLAIN
- inspect a particular Cypher query in order to see its execution plan.FOREACH
- iterates over a list of elements and stores each element inside a variableLOAD CSV
- loads data from CSV fileMATCH
- searches for patternsMERGE
- creates patterns if they don't existOPTIONAL MATCH
- behaves the same asMATCH
, but when it fails to find the pattern it fills missing parts of the pattern with null valuesPROFILE
- profiles the execution of a query returns a detailed report on how the query's plan behavedREMOVE
- removes labels and propertiesRETURN
- defines what will be presented to the user in the result setSET
- adds new or updates existing labels and propertiesUNION
andUNION ALL
- combines results from multiple queriesUNWIND
- unwinds a list of values as individual rowsWHERE
- filters the matched dataWITH
- combines multiple reads and writes- [
PERIODIC COMMIT
] - initial commit