Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-15-2021 01:57 PM
While debugging some generated cypher queries from graphql, I realized that the all
predicate may not be working as expected. Below is a much simpler query to demonstrate my point.
with [] as sample_list return all(b in sample_list where b)
- this returns true
This appears to conflict with the following from neo4j documention on the all
predicate:
"The function all() returns true if the predicate holds for all elements in the given list. null is returned if the list is null or all of its elements are null." - link
Is this desired behavior? Or is the all
predicate not working properly since the list is null?
Neo4j version: 4.2.5
Browser: 4.2.6
06-23-2021 04:52 PM
I think it's working correctly. All elements (zero) are true.
I guess all(x in [] WHERE true) == none(x in [] where true)
All the sessions of the conference are now available online