Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-09-2022 04:30 PM - edited 06-09-2022 04:44 PM
I need a query that finds nodes without a specific relationship. The following query works:
MATCH (e:Entity)
WHERE NOT (e)-[:CHILD_OF]->()
RETURN e
This feature is deprecated and will be removed in future versions.
Coercion of list to boolean is deprecated. Please consider using `NOT isEmpty(...) instead
06-09-2022 06:41 PM
In new version the syntax is:
MATCH (e:Entity)
WHERE NOT isEmpty((e)-[:CHILD_OF]->())
RETURN e
06-10-2022 03:15 AM
Small correction: remove "NOT". (Just in case)
MATCH (e:Entity)
WHERE isEmpty((e)-[:CHILD_OF]->())
RETURN e
06-10-2022 07:13 AM - edited 06-10-2022 07:15 AM
While that works, neo4j browser gives a different warning.
This feature is deprecated and will be removed in future versions.
A pattern expression should only be used in order to test the existence of a pattern. It should therefore only be used in contexts that evaluate to a boolean, e.g. inside the function exists() or in a WHERE-clause. All other uses are deprecated and should be replaced by a pattern comprehension.
06-10-2022 08:42 AM
Maybe
MATCH (e:Entity)
WHERE not exists((e)-[:CHILD_OF]->())
RETURN e
All the sessions of the conference are now available online