Skip to content

Commit 292fd85

Browse files
cleanup
1 parent e8b93c3 commit 292fd85

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

modules/ROOT/pages/queries/composed-queries/conditional-queries.adoc

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@ To recreate the graph, run the following query against an empty Neo4j database:
1919

2020
[source, cypher, role=test-setup]
2121
----
22-
CREATE
23-
(alice:Person {name:'Alice', age: 65}),
24-
(bob:Person {name: 'Bob', age: 25}),
25-
(charlie:Person {name: 'Charlie', age: 61}),
26-
(daniel:Person {name: 'Daniel', age: 39}),
27-
(eskil:Person {name: 'Eskil', age: 39}),
28-
(bob)-[:WORKS_FOR]->(alice),
29-
(alice)-[:WORKS_FOR]->(daniel),
30-
(charlie)-[:WORKS_FOR]->(daniel),
31-
(bob)-[:LOVES]->(eskil),
32-
(charlie)-[:LOVES]->(alice)
22+
CREATE (alice:Person {name:'Alice', age: 65}),
23+
(bob:Person {name: 'Bob', age: 25}),
24+
(charlie:Person {name: 'Charlie', age: 61}),
25+
(daniel:Person {name: 'Daniel', age: 39}),
26+
(eskil:Person {name: 'Eskil', age: 39}),
27+
(bob)-[:WORKS_FOR]->(alice),
28+
(alice)-[:WORKS_FOR]->(daniel),
29+
(charlie)-[:WORKS_FOR]->(daniel),
30+
(bob)-[:LOVES]->(eskil),
31+
(charlie)-[:LOVES]->(alice)
3332
----
3433

3534
[[standalone-when-logic]]
@@ -234,14 +233,14 @@ CALL (*) {
234233
RETURN n.name AS name, ageGroup, manager
235234
----
236235
237-
`Bob` returned because he is the only person in the graph with an older manager.
236+
`Bob` is returned because he is the only person in the graph with an older manager.
238237
239238
.Result
240239
[role="queryresult",options="header,footer",cols="3*<m"]
241240
|===
242241
| name | ageGroup | manager
243242
244-
| "Bob" | "Junior" | [["Alice", "Veteran"]]
243+
| "Bob" | "Junior" | [["Alice", "Veteran"]]
245244
246245
3+d| Rows: 1
247246
|===
@@ -416,7 +415,7 @@ RETURN person, collect(message) AS status
416415
| "Daniel" | ["Loves no one", "Under 40"]
417416
| "Eskil" | ["Loves no one", "Under 40"]
418417
| "Peter" | ["Loves no one", "Under 40"]
419-
| "Bob" | ["Loves somebody", "Younger person"]
418+
| "Bob" | ["Loves somebody", "Under 40"]
420419
421420
2+d| Rows: 6
422421

0 commit comments

Comments
 (0)