Skip to content

Instantly share code, notes, and snippets.

@sylhare
Created November 21, 2017 15:42
Show Gist options
  • Save sylhare/a396899e144aa6f9d2ee9dc50351afd0 to your computer and use it in GitHub Desktop.
Save sylhare/a396899e144aa6f9d2ee9dc50351afd0 to your computer and use it in GitHub Desktop.
graph gist
CREATE (neo:Database {name:'Neo4j'})
CREATE (neo)-[:SUPPORTS]->(:Language {name:'Cypher'})
MATCH (db:Database)-[:SUPPORTS]->(language:Language)
RETURN db.name as db, collect(language.name) as languages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment