I have a neo4j db with the following:
a:Foo b:Bar
about 10% of db have (a)-[:has]->(b)
(a)-[:has]->(b)
I need to get only the nodes
That would be
MATCH (a:Foo) WHERE not ((a)-[:has]->(:Bar)) RETURN a;