Last active
August 29, 2015 14:25
-
-
Save yremmet/5411b548d6b46312602c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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