Reserved keywords

This page contains a list of reserved keywords in Cypher®.

Reserved keywords are words that have a special meaning in Cypher. The listing of the reserved keywords are grouped by the categories from which they are drawn. In addition to this, there are a number of keywords that are reserved for future use.

The reserved keywords are not permitted to be used as identifiers in the following contexts:

  • Variables

  • Function names

  • Parameters

If any reserved keyword is escaped — i.e. is encapsulated by backticks `, such as `AND` — it would become a valid identifier in the above contexts.

Clauses

  • CALL

  • CREATE

  • DELETE

  • DETACH

  • FOREACH

  • LOAD

  • MATCH

  • MERGE

  • OPTIONAL

  • REMOVE

  • RETURN

  • SET

  • START

  • UNION

  • UNWIND

  • WITH

Subclauses

  • LIMIT

  • ORDER

  • SKIP

  • WHERE

  • YIELD

Modifiers

  • ASC

  • ASCENDING

  • ASSERT

  • BY

  • CSV

  • DESC

  • DESCENDING

  • ON

Expressions

  • ALL

  • CASE

  • COUNT

  • ELSE

  • END

  • EXISTS

  • THEN

  • WHEN

Operators

  • AND

  • AS

  • CONTAINS

  • DISTINCT

  • ENDS

  • IN

  • IS

  • NOT

  • OR

  • STARTS

  • XOR

Schema

  • CONSTRAINT

  • CREATE

  • DROP

  • EXISTS

  • INDEX

  • NODE

  • KEY

  • UNIQUE

Hints

  • INDEX

  • JOIN

  • SCAN

  • USING

Literals

  • false

  • null

  • true

Reserved for future use

  • ADD

  • DO

  • FOR

  • MANDATORY

  • OF

  • REQUIRE

  • SCALAR