Skip to content

Instantly share code, notes, and snippets.

@cskardon
Last active November 7, 2024 14:32
Show Gist options
  • Save cskardon/d1d1839c707c8e27c841ca909fa0f6c8 to your computer and use it in GitHub Desktop.
Save cskardon/d1d1839c707c8e27c841ca909fa0f6c8 to your computer and use it in GitHub Desktop.
A gist of the queries used in the Advanced Neo4j course setting up the movies DB
//Extra Setup for the course
MATCH (n)
SET n.id = elementid(n);
//Adding releaseyear as a property for ease of querying later
MATCH (m:Movie) WHERE m.released IS NOT NULL
SET m.released = date(m.released)
SET m.releaseyear = m.released.year
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment