Skip to content

Instantly share code, notes, and snippets.

@vladbatushkov
Created May 2, 2019 16:52
Show Gist options
  • Save vladbatushkov/b85dc4d89c0195ca303b242f115547e3 to your computer and use it in GitHub Desktop.
Save vladbatushkov/b85dc4d89c0195ca303b242f115547e3 to your computer and use it in GitHub Desktop.
Leonardo da Vinci known for.
MATCH (g:Genius)
WITH ['Painter', 'Sculptor', 'Architect', 'Musician', 'Scientist', 'Mathematician', 'Engineer', 'Inventor', 'Anatomist', 'Geologist', 'Cartographer', 'Botanist', 'Writer'] as knowns, g
UNWIND knowns as known
MERGE (g)-[:KNOWN_FOR]->(o:Occupation { name: known })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment