Skip to content

Instantly share code, notes, and snippets.

@danstarns
Created April 8, 2022 14:16
Show Gist options
  • Save danstarns/5b1e0cd331b9b5781cd9cc8c8fe61cf4 to your computer and use it in GitHub Desktop.
Save danstarns/5b1e0cd331b9b5781cd9cc8c8fe61cf4 to your computer and use it in GitHub Desktop.
read-movies-cypher
MATCH (m:Movie {title: "Forrest Gump"})
MATCH (m)<-[:ACTED_IN]-(actors:Person)
MATCH (m)-[:IN_GENRE]->(genres:Genre)
RETURN m {.title, actors: collect(actors), genres: collect(genres)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment