Expressions
A Cypher® expression is any part of a query that evaluates to a value. For details and examples of specific expressions, see the following sections:
-
-
Boolean operators:
AND
,OR
,XOR
,NOT
-
Comparison operators:
=
,<>
,<
,>
,<=
,>=
,IS NULL
,IS NOT NULL
-
List operators:
IN
-
String operators:
STARTS WITH
,ENDS WITH
,CONTAINS
,IS NORMALIZED
,IS NOT NORMALIZED
,=~
-
Path pattern expressions: information about filtering queries with path pattern expressions.
-
Type predicate expressions: information about how to verify the value type of a Cypher expression.
-
-
Node and relationship operators: information about how to access
NODE
andRELATIONSHIP
property values with.
and[]
. -
Mathematical operators:
+
,-
,*
,/
,%
,^
. -
Temporal operators:
+
,-
,*
,/
-
List expressions: information about list concatenation operators (
||
,+
), list element access, list slicing, and list as well as pattern comprehensions. -
Map expressions: information about map operators (
.
,[]
) and map projection.
The following expressions are documented elsewhere in the Cypher Manual:
-
Value literals (see Values and types)
Expressions containing unsanitized user input may make your application vulnerable to Cypher injection. Consider using parameters instead. For more information, see Neo4j Knowledge Base → Protecting against Cypher Injection. |