Skip to content

Instantly share code, notes, and snippets.

@anderssonfilip
Last active August 29, 2015 14:24
Show Gist options
  • Save anderssonfilip/2c3a274fa6d01f947039 to your computer and use it in GitHub Desktop.
Save anderssonfilip/2c3a274fa6d01f947039 to your computer and use it in GitHub Desktop.
CREATE (p:Person { name: 'Alice' })
CREATE (p:Person { name: 'Bob' })
CREATE (c:City { name: 'London' })
CREATE (c:City { name: 'Portsmouth' })
CREATE (s:StreetName { name: 'High Street' })
MATCH (s:StreetName), (c:City) CREATE (s)-[:IS_IN]->(c)
MATCH (p:Person{name:'Alice'}), (c:City{name:'London'}) CREATE (p)-[:LIVES_IN]->(c)
MATCH (p:Person{name:'Bob'}), (c:City{name:'Portsmouth'}) CREATE (p)-[:LIVES_IN]->(c)
MATCH (p:Person{name:'Alice'}), (s:StreetName{name:'High Street'}) CREATE (p)-[:LIVES_IN]->(s)
MATCH (p:Person{name:'Bob'}), (s:StreetName{name:'High Street'}) CREATE (p)-[:LIVES_IN]->(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment