Skip to content

Commit 5e3a923

Browse files
second
1 parent 7b1968d commit 5e3a923

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
*** xref:expressions/predicates/path-pattern-expressions.adoc[]
7575
*** xref:expressions/predicates/type-predicate-expressions.adoc[]
7676
** xref:expressions/mathematical-operators.adoc[]
77+
** xref:expressions/string-operators.adoc[]
7778
** xref:expressions/conditional-expressions.adoc[]
7879
7980
* xref:functions/index.adoc[]

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

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,29 @@ Cypher contains two functionally equivalent operators for the concatenation of `
77
* `+`
88
* `||`
99
10+
`||` is xref:appendix/gql-conformance/index.adoc[GQL conformant], `+` is not.
11+
12+
For additional expressions evaluating `STRING` values, see xref:functions/string.adoc[String functions].
13+
14+
[[examples]]
15+
== Examples
16+
17+
.`||` and `+`
18+
[source, cypher]
19+
----
20+
RETURN 'concatenatedWith' || '||' AS result1
21+
'concatenatedWith' + '+' AS result2
22+
----
23+
24+
.Result
25+
[role="queryresult",options="header,footer",cols="2*<m"]
26+
|===
27+
| result1 | result2
28+
29+
| "concatenatedWith||" | "concatenatedWith+"
30+
31+
2+d|Rows: 1
32+
|===
33+
34+
1035

11-
Using `+` to concatenate strings is functionally equivalent to using `||`.
12-
However, the `+` string concatenation operator is not xref:appendix/gql-conformance/index.adoc[GQL conformant].

0 commit comments

Comments
 (0)