Skip to content

Instantly share code, notes, and snippets.

@chizmw
Last active August 3, 2018 08:42
Show Gist options
  • Save chizmw/dfa21c79aa63042d4c63fe2215cd910d to your computer and use it in GitHub Desktop.
Save chizmw/dfa21c79aa63042d4c63fe2215cd910d to your computer and use it in GitHub Desktop.
Crossfire
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
MATCH (d:Database)-[rel:SUPPORTS]->(l:Language)
RETURN d,l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment