Skip to content

Instantly share code, notes, and snippets.

@quagly
Last active December 20, 2015 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save quagly/6098929 to your computer and use it in GitHub Desktop.
Save quagly/6098929 to your computer and use it in GitHub Desktop.
= graphGist generated from spock test Neo4jCypherOneLabel.groovy
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist]
Generated on Sun Jul 28 08:03:43 PDT 2013
//console
query to create plato with philosopher label
[source,cypher]
----
CREATE (n:Philosopher { name : 'Plato' , url : 'http://dbpedia.org/resource/Plato' })
----
//table
query to create Aristotle with philosopher label
[source,cypher]
----
CREATE (n:Philosopher { name : 'Aristotle' , url : 'http://dbpedia.org/resource/Aristotle' })
----
//table
query to return all nodes with label philosopher
[source,cypher]
----
MATCH p:Philosopher
RETURN p as philosopher
----
//table
@cleishm
Copy link

cleishm commented Nov 5, 2013

Hi @quagly! This GraphGist no longer works with the latest Neo4j 2.0 milestone build. I've updated it here: https://gist.github.com/cleishm/7313331. Could you update this copy also? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment