You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc
+48-18Lines changed: 48 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,10 +59,10 @@ label:removed[]
59
59
RETURN 1 as my\u0085identifier
60
60
----
61
61
a|
62
-
The Unicode character \`\u0085` has been removed for unescaped identifiers and is now considered a whitespace character.
63
-
To continue using it, escape the identifier by adding backticks around it.
62
+
The Unicode character `\u0085` (`Next Line`) has been removed for unescaped identifiers and is now considered a whitespace character.
63
+
To continue using it, escape the identifier by adding backticks (++``++) around it.
64
64
This applies to all unescaped identifiers in Cypher, such as label expressions, properties, variable names, or parameters.
65
-
In the given example, the quoted identifier would be \`my�identifier`.
65
+
In the given example, the quoted identifier would be `my\u0085identifier`.
66
66
67
67
a|
68
68
label:functionality[]
@@ -72,23 +72,24 @@ label:removed[]
72
72
RETURN 1 as my$Identifier
73
73
----
74
74
a|
75
-
The character with the Unicode representation \`\u0024` has been removed for unescaped identifiers. To continue using it, escape the identifier by adding backticks around the identifier.
76
-
This applies to all unescaped identifiers in Cypher, such as label expressions, properties, variable names, or parameters. In the given example, the quoted identifier would be \`my$identifier`.
75
+
The character with the Unicode representation `\u0024` (`$`) has been removed for unescaped identifiers.
76
+
To continue using it, escape the identifier by adding backticks (++``++) around the identifier.
77
+
This applies to all unescaped identifiers in Cypher, such as label expressions, properties, variable names, or parameters. In the given example, the quoted identifier would be `my\u0024identifier`.
77
78
78
79
The following Unicode Characters are removed in identifiers:
@@ -186,6 +187,35 @@ For more information, see link:{neo4j-docs-base-uri}/operations-manual/current/d
186
187
| Feature
187
188
| Details
188
189
190
+
a|
191
+
label:functionality[]
192
+
label:updated[]
193
+
[source, cypher, role="noheader"]
194
+
----
195
+
WITH 1 AS g
196
+
RETURN COLLECT {
197
+
UNWIND [1,2,3] AS x
198
+
WITH * WHERE x < 0
199
+
WITH count(*) AS agg
200
+
RETURN agg + g
201
+
} AS x
202
+
----
203
+
204
+
a| Imported variables are now correctly handled as constants inside xref:subqueries/collect.adoc[`COLLECT`], xref:subqueries/count.adoc[`COUNT`], and xref:subqueries/existential.adoc[`EXISTS`] subquery expressions.
205
+
The example query previously returned no results (`[]`) because the imported variable was used incorrectly as an implicit grouping key.
206
+
It now returns `[1]`, since the variable is not used as a grouping key, allowing `count(*)` to return `0` and `0 + g` to evaluate to `1`.
207
+
208
+
a|
209
+
label:functionality[]
210
+
label:updated[]
211
+
[source, cypher, role="noheader"]
212
+
----
213
+
RETURN $0hello
214
+
----
215
+
216
+
a| Parameters can start with extended identifier characters (such as numbers), in line with the xref:appendix/gql-conformance/index.adoc[GQL] standard.
217
+
For more information, see xref:syntax/parameters.adoc[].
Copy file name to clipboardExpand all lines: modules/ROOT/pages/syntax/parameters.adoc
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,9 @@ Parameters cannot be used for the following constructs, as these form part of th
26
26
* Relationship types; `MATCH (n)-[:$param]->(m)` is invalid.
27
27
* Node labels; `MATCH (n:$param)` is invalid.
28
28
29
-
Parameters may consist of letters and numbers, and any combination of these, but cannot start with a number or a currency symbol.
29
+
Parameter names can start with and contain underscores, letters, numbers, and combining marks such as accents (e.g., `é`).
30
+
Currency symbols (e.g., `$` and `€`), non-printable Unicode control characters that only affect formatting (e.g., `\t` for Tab), punctuation (e.g., `!`), and whitespaces are not allowed in any position of a parameter name.
31
+
For example, `$héllo`, `$0param`, and `$_param` are valid, while `$€value`, `$hello!`, and `$bad param` are not.
30
32
31
33
Setting parameters when running a query is dependent on the client environment.
0 commit comments