Reputation: 877
I'm playing with the Movie Graph from Neo4J to learn more about Cypher. I want to get the actors that entered in more than one movie. How can I create such query?
Upvotes: 0
Views: 290
Reputation: 66999
Here is a performant way to get actors that acted in multiple movies (using a cheap degreeness check):
MATCH (a:Person)
WHERE SIZE((a)-[:ACTED_IN]->()) > 1
RETURN a
Upvotes: 5