Skip to content

Instantly share code, notes, and snippets.

@alexfrieden
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexfrieden/7c9d2d1fb071687585ed to your computer and use it in GitHub Desktop.
Save alexfrieden/7c9d2d1fb071687585ed to your computer and use it in GitHub Desktop.
graphgist example

A simple GraphGist

You create a GraphGist by creating a GitHub Gist in AsciiDoc and enter the URL to it in the form on this page.

Click on the Page Source button in the menu to see the source for this GraphGist!

Include a query console

//console

becomes:

Define a Cypher query

[source,cypher]
----
CREATE (n{name:'cypher'})-[r:LIKES]->({name:'icecream'}) return n.name, r
----

becomes:

CREATE (n{name:'cypher'})-[r:LIKES]->({name:'icecream'}) return n.name, r

Queries are executed in the order they appear on the page during rendering, so make sure they can be performed in that order. Each query has a green or red button to indicate if the query was successful or not. The console is set up after the executions, with an empty database, for the reader to play around with the queries.

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