Skip to content

Instantly share code, notes, and snippets.

@yremmet
Last active August 29, 2015 14:25
Show Gist options
  • Save yremmet/5411b548d6b46312602c to your computer and use it in GitHub Desktop.
Save yremmet/5411b548d6b46312602c to your computer and use it in GitHub Desktop.
# My Test Gist
//setup
[source,cypher]
----
CREATE (you:Person {name:"You"})-[like:LIKE]->(thing:Database {name:"Neo4j" })
RETURN you, like, thing
----
//console
//graph
[source,cypher]
----
MATCH (you:Person { name:"You" })
CREATE (you)-[love:LOVE]->(her:Person{name:"Your GF" })
RETURN you, love, her
----
[source,cypher]
----
MATCH (you:Person { name:"You" })
FOREACH (name in ["Brian","Rajesh","Anna","Steffen","Andrew"] |
CREATE (you)-[friend:Friend]->(they:Person{name:Name })
RETURN you, friend, they
----
//graph
//table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment