MATCH (queen:Gliese{name:'Queen'})
WITH queen
MATCH (a)-[:FRIEND_OF]->(queen),(b)-[:ENEMY_OF]->(queen),(a)-[:KILLED]->(b)
RETURN a.name, count(*) as count;
Instead of getting lisha, 1, as expected, I get (No rows).
Strangely if I do
MATCH (a)-[:FRIEND_OF]->(queen),(b)-[:ENEMY_OF]->(queen),(a)-[:KILLED]->(b)
RETURN a.name, count(*) as count;
alone, I get the expected result. In addition if I do
MATCH (queen:Gliese{name:'Queen'})
WITH queen
MATCH (a)-[:FRIEND_OF]->(n),(b)-[:ENEMY_OF]->(n),(a)-[:KILLED]->(b)
RETURN a.name, count(*) as count;
I get Lisha, 1 and Eva, 1! I don't really understand these differences!
In older versions my code seems to work, unless there's some other problem I don't get.
What's going on here?
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.