DEV Community

Lavender
Lavender

Posted on

1

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs