How is it possible in cypher to have a query like: "return all people that anna follows that don't follow anyone"?
In the following (where I have the id of the start node made clear after the query) the "r is null"-part does not seem to work:
START o=node({id})
MATCH (a)-[:follows]->(b)-[r]->(c)
WHERE a.name="anna" and r is null
RETURN b
Right now, "follows" is the only relation I have. But also
START o=node({id})
MATCH (a)-[:follows]->(b)-[:follows]->(c)
WHERE a.name="anna" and c is null
RETURN b* does not work.
By doesn't work I mean: I don't get any results although there should be some.