Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が出演するすべての映画と各映画の俳優の合計をリストしたいのですが、以下のクエリは私以外の俳優の合計のみを返し、他の俳優がいない映画 which は返しません。
start me=node({0}) match me-[:ACTS_IN]->movie<-[:ACTS_IN]-otherActors return movie, count(*) as actorSum
で分解する必要がありますWITH。クエリの問題はme、の最初の部分でノードを要求しているmatchためme、otherActors.
WITH
me
match
otherActors
start me=node({0}) match me-[:ACTS_IN]->movie with movie match movie<-[:ACTS_IN]-actors return movie, count(*) as actorSum