Skip to content

Commit d10b4a9

Browse files
colons not hyphen
1 parent eea7358 commit d10b4a9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,6 @@ RETURN cecil.skills AS skillsList
388388
1+d|Rows: 1
389389
|===
390390

391-
392-
393-
394391
[[list-comprehension]]
395392
== List comprehension
396393

@@ -592,7 +589,7 @@ RETURN [(employee:Person)-[:WORKS_FOR]->(alice) WHERE employee.age > 30 | employ
592589
Pattern comprehension can also match for xref:patterns/variable-length-patterns.adoc[variable-length patterns].
593590
However, pattern comprehension does not support the xref:patterns/reference.adoc#quantifiers[GQL conformant quantifier syntax].
594591

595-
.Not allowed - pattern comprehension to match patterns of a variable length using GQL quantifier syntax
592+
.Not allowed: variable-length pattern comprehension using GQL quantifier syntax
596593
[source, cypher, role=test-fail]
597594
----
598595
MATCH (cecil:Person {name: 'Cecil'})
@@ -603,7 +600,7 @@ Pattern comprehension only supports only the xref:patterns/reference.adoc#variab
603600
The below query uses a pattern comprehension to collect the skills of all superiors in the chain above `Cecil`.
604601
The xref:functions/list.adoc#functions-reduce[`reduce()`] function concatenates these skills into a single `LIST`, and xref:clauses/unwind.adoc[`UNWIND`] is used to flatten this `LIST` before returning the distinct skills in a new `LIST`.
605602

606-
.Allowed - pattern comprehension to match patterns of a variable length using variable-length relationship syntax
603+
.Allowed: variable-length pattern comprehension using variable-length relationship syntax
607604
[source, cypher]
608605
----
609606
MATCH (cecil:Person {name: 'Cecil'})

0 commit comments

Comments
 (0)