Last active
November 7, 2024 14:32
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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