I wanted to write a small query that gives me a list of nodes that don't have a specific relationship.
A quick google gives me results that suggest this solution:
match (p:Product)
where not (p)-[:HAS_CATEGORY]->(:Category)
return count(p)
This works and is simple enough, but it keeps giving me this warning:
This feature is deprecated and will be removed in future versions.
Coercion of list to boolean is deprecated. Please consider using 'NOT isEmpty(...)' instead.
I have been googling this warning but it leads me to no conclusion as to how my original query should be written.
In general I found it quite frustrating to find an answer, which is also the reason I came to the forum.
Either I do not know the right place to find these kind of things or either the documentation regarding these warnings is extremely lacking.
Which version of Neo4j and Neo4j Browser are you using?
I don't get any warnings on my side for the query with exists but I get one with the isEmpty witch recommend to use exists