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- drop all constraints, indexes, or the entire databaseEXPLAIN- 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 propertiesUNIONandUNION ALL- combines results from multiple queriesUNWIND- unwinds a list of values as individual rowsWHERE- filters the matched dataWITH- combines multiple reads and writesUSING PERIODIC COMMIT num_rows- batches query for periodic executionCALL {subquery} IN TRANSACTIONS OF num_rows ROWS- batches subquery for periodic execution