Last active
August 29, 2015 14:24
-
-
Save anderssonfilip/2c3a274fa6d01f947039 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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