Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pages/querying/expressions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ RETURN actor.name, years, titles;
```
The whole predicate, including the `WHERE` keyword, is optional and may be omitted.

Pattern comprehensions can be nested, for example `[(n)-->(m) | [(m)-->(x) | x.id]]` returns a list of lists.

You can also bind the matched path to a variable using the syntax `[path = (a)-[r]->(b) | length(path)]`.

### Pattern comprehension in `WHERE` clause

Pattern comprehension can also be combined with comprehension constructs inside the `WHERE` clause.
Expand Down