Created
October 30, 2020 18:11
-
-
Save cj2001/ffaef68a7b33bddc115b458bac735fa0 to your computer and use it in GitHub Desktop.
Loading heros edge list CSV data into Neo4j
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
LOAD CSV WITH HEADERS FROM "file:///heros_edge_list.csv" AS row | |
MATCH (h1:hero {hero: row.hero}) | |
MATCH (c1:comic {comic: row.comic}) | |
CALL apoc.create.relationship(h1, c1) YIELD rel | |
REMOVE rel.noOp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment