Skip to content

Instantly share code, notes, and snippets.

@sylhare
Created November 21, 2017 15:42
Show Gist options
  • Select an option

  • Save sylhare/a396899e144aa6f9d2ee9dc50351afd0 to your computer and use it in GitHub Desktop.

Select an option

Save sylhare/a396899e144aa6f9d2ee9dc50351afd0 to your computer and use it in GitHub Desktop.

Revisions

  1. sylhare revised this gist Nov 21, 2017. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions graph.adoc
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,10 @@
    ----
    CREATE (neo:Database {name:'Neo4j'})
    CREATE (neo)-[:SUPPORTS]->(:Language {name:'Cypher'})
    ----

    [source,cypher]
    ----
    MATCH (db:Database)-[:SUPPORTS]->(language:Language)
    RETURN db.name as db, collect(language.name) as languages
    ----
  2. sylhare created this gist Nov 21, 2017.
    7 changes: 7 additions & 0 deletions graph.adoc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    //setup
    //hide
    [source,cypher]
    ----
    CREATE (neo:Database {name:'Neo4j'})
    CREATE (neo)-[:SUPPORTS]->(:Language {name:'Cypher'})
    ----