DEV Community

Lavender
Lavender

Posted on

Neo4j: List predicates

all(x IN coll WHERE x.property IS NOT NULL)
Enter fullscreen mode Exit fullscreen mode

Returns true if the predicate is true for all elements in the list.

any(x IN coll WHERE x.property IS NOT NULL)
Enter fullscreen mode Exit fullscreen mode

Returns true if the predicate is true for at least one element in the list.

none(x IN coll WHERE x.property IS NOT NULL)
Enter fullscreen mode Exit fullscreen mode

Returns true if the predicate is false for all elements in the list.

single(x IN coll WHERE x.property IS NOT NULL)
Enter fullscreen mode Exit fullscreen mode

Returns true if the predicate is true for exactly one element in the list.

Useful links

Top comments (0)