Skip to content

Commit a0694e5

Browse files
Fix more indentation.
1 parent 50f850e commit a0694e5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ In this example, `WHEN` is used to execute a xref:subqueries/call-subquery.adoc[
174174
MATCH (n:Person)
175175
OPTIONAL MATCH (n)-[:WORKS_FOR]->(m:Person)
176176
CALL (*) {
177-
WHEN m IS NULL THEN {
178-
MERGE (f: Person {name: 'Peter', age: 36})
179-
MERGE (n)-[:WORKS_FOR]->(f)
180-
RETURN f, n.name AS employee
181-
}
177+
WHEN m IS NULL THEN {
178+
MERGE (f: Person {name: 'Peter', age: 36})
179+
MERGE (n)-[:WORKS_FOR]->(f)
180+
RETURN f, n.name AS employee
181+
}
182182
}
183183
RETURN f.name AS manager,
184-
collect(employee) AS employees
184+
collect(employee) AS employees
185185
----
186186
187187
Because only `Daniel` and `Eskil` had no outgoing `WORKS_FOR` relationships, they have now been connected as employees of the new `Peter` node.
@@ -394,10 +394,10 @@ CALL (n) {
394394
UNION
395395
CALL (*) {
396396
WHEN n.age < 40 THEN {
397-
RETURN n.name AS person, "Under 40" AS message
397+
RETURN n.name AS person, "Under 40" AS message
398398
}
399399
ELSE {
400-
RETURN n.name AS person, "40 or older" AS message
400+
RETURN n.name AS person, "40 or older" AS message
401401
}
402402
}
403403
RETURN person, message

0 commit comments

Comments
 (0)