Last active
May 12, 2020 08:02
-
-
Save lennertVanSever/ed7e4255a43c9692373af94bb7115b76 to your computer and use it in GitHub Desktop.
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
await session.run( | |
` | |
MATCH(country: Country { name: $name }) | |
MERGE(subregion: Subregion { name: $subregion }) | |
MERGE(region: Region { name: $region }) | |
MERGE(country)-[:hasSubregion]->(subregion) | |
MERGE(subregion)-[:hasRegion]->(region) | |
`, { | |
name, region, subregion | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment