Skip to content

Instantly share code, notes, and snippets.

@cj2001
Created October 30, 2020 18:11
Show Gist options
  • Save cj2001/ffaef68a7b33bddc115b458bac735fa0 to your computer and use it in GitHub Desktop.
Save cj2001/ffaef68a7b33bddc115b458bac735fa0 to your computer and use it in GitHub Desktop.
Loading heros edge list CSV data into Neo4j
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