Skip to content

Commit 36159ae

Browse files
hvubJPryce-Aklundh
andauthored
cip-190 deprecations (#1084)
Deprecation message related to - neo-technology/neo4j#27564 - neo4j/docs-status-codes#202 - cf. [CIP-190](https://docs.google.com/document/d/1AONjI-SpSEla-bHPJ6ghXBfF9alN5mGiOHOTEyfBtRc/edit) --------- Co-authored-by: Jens Pryce-Åklundh <[email protected]>
1 parent 6efbb2a commit 36159ae

File tree

1 file changed

+75
-1
lines changed

1 file changed

+75
-1
lines changed

modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,81 @@ Replacement syntax for deprecated and removed features are also indicated.
2626
| Feature
2727
| Details
2828

29+
a|
30+
label:functionality[]
31+
label:deprecated[]
32+
[source, cypher, role="noheader"]
33+
----
34+
MATCH (where {...})
35+
----
36+
----
37+
MATCH (...)-[where {...}]->()
38+
----
39+
a| The unescaped variable named `where` (or any casing variant, like `WHERE`) used in a node or relationship pattern followed directly by a property key-value expression is deprecated.
40+
To continue using variables with this name, use backticks to escape the variable name:
41+
42+
* Node patterns: `MATCH (++`where`++ { ... })`
43+
* Relationship patterns: `MATCH (...)-[++`where`++ { ... }]->()`
44+
45+
a|
46+
label:functionality[]
47+
label:deprecated[]
48+
[source, cypher, role="noheader"]
49+
----
50+
... + n:A
51+
----
52+
----
53+
... + n:A&B
54+
----
55+
----
56+
... + n:A&B\|C
57+
----
58+
a| Using an unparenthesized label expression predicate as the right-hand side operand of `+` is deprecated.
59+
Parenthesize the label expression predicate on the right-hand side of `+`: `... + (n:A)`.
60+
61+
a|
62+
label:functionality[]
63+
label:deprecated[]
64+
[source, cypher, role="noheader"]
65+
----
66+
CASE x ... WHEN is :: STRING THEN ... END
67+
----
68+
a| Using an unescaped variable named `is` (or any casing variant, like `IS`) as a `WHEN` operand in a xref:queries/case.adoc#case-simple[simple `CASE`] expression is deprecated.
69+
To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: `CASE x ... WHEN ++`is`++ :: STRING THEN ... END`
70+
71+
a|
72+
label:functionality[]
73+
label:deprecated[]
74+
[source, cypher, role="noheader"]
75+
----
76+
CASE x ... WHEN contains + 1 THEN ... END
77+
----
78+
----
79+
CASE x ... WHEN contains - 1 THEN ... END
80+
----
81+
a| Using an unescaped variable named `contains` (or any casing variant, like `CONTAINS`) in addition or subtraction operations within a `WHEN` operand of a xref:queries/case.adoc#case-simple[simple `CASE`] expression is deprecated.
82+
To continue using variables with this name, use backticks to escape the variable name:
83+
84+
* Additions: `CASE x ... WHEN ++`contains`++ + 1 THEN ... END`
85+
* Subtractions: `CASE x ... WHEN ++`contains`++ - 1 THEN ... END`
86+
87+
a|
88+
label:functionality[]
89+
label:deprecated[]
90+
[source, cypher, role="noheader"]
91+
----
92+
CASE x ... WHEN in[1] THEN ... END
93+
----
94+
----
95+
CASE x ... WHEN in["abc"] THEN ... END
96+
----
97+
a| Using the `[]` operator on an unescaped variable named `in` (or any casing variant, like `IN`) within a `WHEN` operand of a xref:queries/case.adoc#case-simple[simple `CASE`] expression is deprecated.
98+
To continue using variables with this name, use backticks to escape the variable name:
99+
100+
* `CASE x ... WHEN ++`in`++[1] THEN ... END`
101+
* `CASE x ... WHEN ++`in`++["abc"] THEN ... END`
102+
103+
29104
a|
30105
label:functionality[]
31106
label:deprecated[]
@@ -69,7 +144,6 @@ label:updated[]
69144
GRANT READ {*} ON GRAPH * FOR (n) WHERE n.createdAt > date('2024-10-25') TO regularUsers
70145
----
71146
| link:{neo4j-docs-base-uri}/operations-manual/{page-version}/authentication-authorization/property-based-access-control/[Property-based access control] now supports xref:values-and-types/spatial.adoc[spatial] and xref:values-and-types/temporal.adoc[temporal] values.
72-
73147
|===
74148

75149

0 commit comments

Comments
 (0)