Sunday, 8 September 2013

Neo4j Cypher Query include start node

Neo4j Cypher Query include start node

I want to list all movies that i acts in and the sum of actors in each
movie, but below query only return the sum of actors apart from me and
will not return movie which without other actors.
start me=node({0}) match me-[:ACTS_IN]->movie<-[:ACTS_IN]-otherActors
return movie, count(*) as actorSum
Thanks in advance for help.

No comments:

Post a Comment