Neo4j Cypher查询包含开始节点

Neo4j Cypher查询包含开始节点,neo4j,cypher,Neo4j,Cypher,我想列出我演过的所有电影以及每部电影中的演员总数,但下面的查询只返回除了我之外的演员总数,不会返回没有其他演员的电影 start me=node({0}) match me-[:ACTS_IN]->movie<-[:ACTS_IN]-otherActors return movie, count(*) as actorSum start me=node({0}) match me-[:ACTS_IN]->movie你需要用和来打破它。查询的问题是,您正在声明match的第一部分

我想列出我演过的所有电影以及每部电影中的演员总数,但下面的查询只返回除了我之外的演员总数,不会返回没有其他演员的电影

start me=node({0}) 
match me-[:ACTS_IN]->movie<-[:ACTS_IN]-otherActors 
return movie, count(*) as actorSum
start me=node({0})

match me-[:ACTS_IN]->movie你需要用
来打破它。查询的问题是,您正在声明
match
的第一部分中的
me
节点,因此
me
不能位于
其他参与者中

start me=node({0}) 
match me-[:ACTS_IN]->movie
with movie   
match movie<-[:ACTS_IN]-actors 
return movie, count(*) as actorSum
start me=node({0})
匹配我-[:在]->电影中扮演角色
带电影

比赛电影这正是我要找的。但接下来的问题是,这会对性能产生影响吗?