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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more