Skip to content

Commit 159e6e3

Browse files
query fixes
1 parent 17b7ece commit 159e6e3

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

modules/ROOT/pages/expressions/map-expressions.adoc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ RETURN p.name AS actor, collect(m{.title, .released}) AS movies
301301
| "Keanu Reeves" | [{title: "The Matrix Resurrections", released: 2021}, {title: "The Matrix Revolutions", released: 2003}, {title: "The Matrix Reloaded", released: 2003}, {title: "The Matrix", released: 1999}, {title: "The Devils Advocate", released: 1997}]
302302
| "Carrie-Anne Moss" | [{title: "The Matrix Resurrections", released: 2021}, {title: "The Matrix Revolutions", released: 2003}, {title: "The Matrix Reloaded", released: 2003}, {title: "The Matrix", released: 1999}]
303303
304-
1+d|Rows: 2
304+
2+d|Rows: 2
305305
|===
306306
307307
=====
@@ -367,7 +367,7 @@ RETURN keanu{.name, dob, birthplace} AS projectedKeanu
367367
.Result
368368
[role="queryresult",options="header,footer",cols="1*<m"]
369369
|===
370-
| keanuMovies
370+
| projectedKeanu
371371
372372
| {name: "Keanu Reeves", birthPlace: "Beirut, Lebanon", dob: 1964-09-02}
373373
@@ -410,6 +410,16 @@ WITH {a: 10, b: 20, c: 30} AS map
410410
RETURN map{.*} AS projectedMap
411411
----
412412
413+
.Result
414+
[role="queryresult",options="header,footer",cols="1*<m"]
415+
|===
416+
| projectedMap
417+
418+
| {a: 10, b: 20, c: 30}
419+
420+
1+d|Rows: 1
421+
|===
422+
413423
The below query returns all properties from the `Keanu Reeves` node.
414424
An all-map selector is used to project all the node properties.
415425

0 commit comments

Comments
 (0)