Skip to content

Commit 1274352

Browse files
Merge branch 'cypher-25' into with_playground
2 parents 578cc2a + 6b780b6 commit 1274352

File tree

9 files changed

+498
-206
lines changed

9 files changed

+498
-206
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
** xref:expressions/string-operators.adoc[]
7878
** xref:expressions/temporal-operators.adoc[]
7979
** xref:expressions/list-expressions.adoc[]
80+
** xref:expressions/map-expressions.adoc[]
8081
** xref:expressions/conditional-expressions.adoc[]
8182
8283
* xref:functions/index.adoc[]

modules/ROOT/pages/appendix/gql-conformance/supported-mandatory.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ The only way to guarantee row order in Neo4j is to use xref:clauses/order-by.ado
7373
| 14.11
7474
| <return statement>
7575
| xref:clauses/return.adoc[`RETURN`]
76-
| GQL defines the option to specify `RETURN ALL` (functionally equivalent to using `RETURN` on its own).
77-
This is currently not available in Cypher.
76+
|
7877

7978
| 15.4
8079
| <conditional statement>

modules/ROOT/pages/clauses/return.adoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,3 +236,27 @@ The `Movie` node `'Man of Tai Chi'` is returned by the query, but only once (wit
236236
d|Rows: 1
237237
|===
238238

239+
[role=label--new-2025.05]
240+
[[return-all-results]]
241+
== RETURN ALL
242+
243+
Returning all results can also be accomplished by explicitly including `ALL` in the `RETURN`.
244+
The `RETURN ALL` keyword was introduced as part of Cypher's xref:appendix/gql-conformance/index.adoc[], and using it is functionally the same as using simple `RETURN`.
245+
246+
.Query
247+
[source, cypher]
248+
----
249+
MATCH (p:Person {name: 'Keanu Reeves'})-->(m)
250+
RETURN ALL m
251+
----
252+
253+
The same node is returned twice, as there are two relationships connecting to it from `'Keanu Reeves'`.
254+
255+
.Result
256+
[role="queryresult",options="header,footer",cols="1*<m"]
257+
|===
258+
| m
259+
| {"title":"Man of Tai Chi","released":2013}+
260+
| {"title":"Man of Tai Chi","released":2013}+
261+
d|Rows: 1
262+
|===

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,29 @@ RETURN cosh(0.5), coth(0.5), sinh(0.5), tanh(0.5)
307307
----
308308
| Introduction of four new hyperbolic trigonometric Cypher functions.
309309
For more information, see xref:functions/mathematical-trigonometric.adoc[Mathematical functions - trigonometric].
310+
311+
a|
312+
label:functionality[]
313+
label:new[]
314+
[source, cypher, role=noheader]
315+
----
316+
MATCH (n)
317+
RETURN ALL n.prop AS prop
318+
----
319+
| The keyword `ALL` can now be added after a xref:clauses/return.adoc#return-all-results[RETURN] as the explicit form of a `RETURN` without duplicate removal.
320+
321+
a|
322+
label:functionality[]
323+
label:new[]
324+
[source, cypher, role=noheader]
325+
----
326+
MATCH (n)
327+
WITH ALL n.prop AS prop
328+
RETURN prop
329+
----
330+
| The keyword `ALL` can now be added after a xref:clauses/with.adoc#with-all-results[WITH] as the explicit form of a `WITH` without duplicate removal.
331+
332+
310333
|===
311334

312335
[[cypher-deprecations-additions-removals-2025.03]]

modules/ROOT/pages/expressions/index.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ For details and examples of specific expressions, see the following sections:
1515
* xref:expressions/string-operators.adoc[]: `+`, `||`
1616
* xref:expressions/temporal-operators.adoc[]: `+`, `-`, `*`, `/`
1717
* xref:expressions/list-expressions.adoc[]: information about list concatenation operators (`||`, `+`), list element access, list slicing, and list as well as pattern comprehensions.
18+
* xref:expressions/map-expressions.adoc[]: information about map operators (`.`, `[]`) and map projection.
1819
* xref:expressions/conditional-expressions.adoc[]
1920

0 commit comments

Comments
 (0)