You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pattern comprehension can also match for xref:patterns/variable-length-patterns.adoc[variable-length patterns].
593
590
However, pattern comprehension does not support the xref:patterns/reference.adoc#quantifiers[GQL conformant quantifier syntax].
594
591
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
596
593
[source, cypher, role=test-fail]
597
594
----
598
595
MATCH (cecil:Person {name: 'Cecil'})
@@ -603,7 +600,7 @@ Pattern comprehension only supports only the xref:patterns/reference.adoc#variab
603
600
The below query uses a pattern comprehension to collect the skills of all superiors in the chain above `Cecil`.
604
601
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`.
605
602
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
0 commit comments