Skip to content

Instantly share code, notes, and snippets.

@robinedwards
Created December 6, 2012 15:21
Show Gist options
  • Save robinedwards/4225265 to your computer and use it in GitHub Desktop.
Save robinedwards/4225265 to your computer and use it in GitHub Desktop.
START country_cat = node:Category(category="Country"),
nationality_cat = node:Category(category="Nationality"),
passport_cat = node:Category(category="Passport")
CREATE UNIQUE
(country_cat)-[:COUNTRY {__instance__: true}]->(country {code: 'GB'})
-[:NATIONALITY]->
(nationality {code: 'GB-GB'})
-[:PASSPORT]->
(passport {code: 'GB-GB-P'}),
(nationality_cat)-[:NATIONALITY {__instance__: true}]->(nationality),
(passport_cat)-[:PASSPORT {__instance__: true}]->(passport);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment