Skip to content

Commit adb7a1a

Browse files
consistent use of ||
1 parent 954145e commit adb7a1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ROOT/pages/expressions/string-operators.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ RETURN 'Alpha' || 'Beta' AS result1,
6666

6767
| "AlphaBeta" | "Alpha Beta"
6868

69-
1+d| Rows: 1
69+
2+d| Rows: 1
7070
|===
7171

7272
.Concatenating `STRING` properties
@@ -92,7 +92,7 @@ RETURN p.fullName AS fullName
9292
.Concatenate `STRING` values in a `LIST`
9393
[source, cypher]
9494
----
95-
RETURN reduce(acc = '', item IN ['Neo', '4j'] | acc + item) AS result
95+
RETURN reduce(acc = '', item IN ['Neo', '4j'] | acc || item) AS result
9696
----
9797

9898
.Result
@@ -115,7 +115,7 @@ This ensures that all `NULL` values are effectively skipped, allowing the `reduc
115115
[source, cypher]
116116
----
117117
WITH ['Neo', NULL, '4j', NULL, 'Hello', NULL] AS items
118-
RETURN reduce(acc = '', item IN items | acc + coalesce(item, '')) AS result
118+
RETURN reduce(acc = '', item IN items | acc || coalesce(item, '')) AS result
119119
----
120120

121121
.Result

0 commit comments

Comments
 (0)