Testing Lists with Predicate Functions
2.9 · Lesson

Testing Lists with Predicate Functions

Full definition for Cypher (opens in a new tab)Neo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it. has a number of list predicate functions that help you to test if:

  • all elements satisfy the criteria.
  • one or more elements satisfy the criteria.
  • a list is empty.
  • no elements in a list satisfy the criteria.
  • at most a single element satisfies the criteria.