RedisGraph implements a subset of the Cypher language, which is growing as development continues. This document is based on the Cypher Query Language Reference (version 9), available at OpenCypher Resources.
Patterns are fully supported.
- Nodes are fully supported save that a node can only be associated with a single label.
- Undirected relationships are not supported.
- Path variables (alternating sequence of nodes and relationships).
- Temporal types (Date, DateTime, LocalDateTime, Time, LocalTime, Duration)
- Numeric types (64-bit doubles and 64-bit signed integer representations)
- String literals
- Hexadecimal and octal numerics
NULL is supported as a representation of a missing or undefined value.
Comparability, equality, orderability, and equivalence¶
This is a somewhat nebulous area in Cypher itself, with a lot of edge cases. Broadly speaking, RedisGraph behaves as expected with string and numeric values. There are likely some behaviors involving the numerics NaN, -inf, inf, and possibly -0.0 that deviate from the Cypher standard. We do not support any of these properties at the type level, meaning nodes and relationships are not internally comparable.
- OPTIONAL MATCH
- MANDATORY MATCH
- ORDER BY
- ASC and DESC are supported at the level of the sub-clause, but not for individual properties (issue #96)
- We actually implement DETACH DELETE, the distinction being that relationships invalidated by node deletions are automatically deleted.
- REMOVE (to modify properties)
- Properties can be deleted with SET [prop] = NULL.
- CALL (procedures)
- The currently-supported procedures can be found in the Procedures documentation.
- UNION / UNION ALL
- Casting functions (toBoolean, toFloat, toInteger)
- Relationship functions (startNode, endNode, type)
- Temporal arithmetics
Math functions - numeric¶
Unsupported function classes¶
- Logarithmic math functions
- Trigonometric math functions
- User-defined functions
- Predicate functions (the only function in this class is EXISTS)
- Multiplication, addition, subtraction, division
- Modulo, exponentiation
String operators (STARTS WITH, ENDS WITH, CONTAINS) are supported.
- RedisGraph provides the
GRAPH.EXPLAINcommand to print the execution plan of a provided query.
GRAPH.DELETEwill remove a graph and all Redis keys associated with it.
- We do not currently provide support for queries that retrieve schemas, though the LABELS and TYPE scalar functions may be used to get a graph overview.