Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,78 @@ New features are added to the language continuously, and occasionally, some feat
This section lists all of the features that have been removed, deprecated, added, or extended in different Cypher versions.
Replacement syntax for deprecated and removed features are also indicated.

[[cypher-deprecations-additions-removals-5.26]]
== Neo4j 5.26

=== Deprecated features

[cols="2", options="header"]
|===
| Feature
| Details

a|
label:functionality[]
label:deprecated[]
[source, cypher, role="noheader"]
----
MATCH (where {...})
----
----
MATCH (...)-[where {...}]->()
----
| The unescaped variable named `where` or `WHERE` (or in any other casing) in a node pattern or a relationship pattern if directly followed by a property key-value expression only is deprecated. Use backticks to escape the variable name: `MATCH (++`where`++ { ... })` or `MATCH (...)-[++`where`++ { ... }]->()`.

a|
label:functionality[]
label:deprecated[]
[source, cypher, role="noheader"]
----
... + n:A
----
----
... + n:A&B
----
----
... + n:A&B\|C
----
| The unparenthesized label expression predicate as right-hand side operand of `\+` is deprecated. Parenthesize the label expression predicate on the right-hand side of `+`: `... + (n:A)`.

a|
label:functionality[]
label:deprecated[]
[source, cypher, role="noheader"]
----
CASE x ... WHEN is :: STRING THEN ... END
----
| The type predicate expression on an unescaped variable named `is` or `IS` (or in any other casing) as a when operand of a simple `CASE` is deprecated. Use backticks to escape the variable name: `CASE x ... WHEN ++`is`++ :: STRING THEN ... END`

a|
label:functionality[]
label:deprecated[]
[source, cypher, role="noheader"]
----
CASE x ... WHEN contains + 1 THEN ... END
----
----
CASE x ... WHEN contains - 1 THEN ... END
----
| The addition or subtraction on an unescaped variable named `contains` or `CONTAINS` (or in any other casing) as a when operand of a simple `CASE` is deprecated. Use backticks to escape the variable name: `CASE x ... WHEN ++`contains`++ + 1 THEN ... END` or `CASE x ... WHEN ++`contains`++ - 1 THEN ... END`

a|
label:functionality[]
label:deprecated[]
[source, cypher, role="noheader"]
----
CASE x ... WHEN in[1] THEN ... END
----
----
CASE x ... WHEN in["abc"] THEN ... END
----
| The `[]` operator on an unescaped variable named `in` or `IN` (or in any other casing) as a when operand of a simple `CASE` is deprecated. Use backticks to escape the variable name: `CASE x ... WHEN ++`in`++[1] THEN ... END` or `CASE x ... WHEN ++`contains`++["abc"] THEN ... END`
|===


[[cypher-deprecations-additions-removals-5.25]]
== Neo4j 5.25

Expand Down