Skip to content

Instantly share code, notes, and snippets.

@peterneubauer
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save peterneubauer/76b32823690d709449c7 to your computer and use it in GitHub Desktop.

Select an option

Save peterneubauer/76b32823690d709449c7 to your computer and use it in GitHub Desktop.
= Artist test
== First paragraph
[source,cypher]
----
create
(a1:Artist{name:'Awesome1'}),
(a2:Artist{name:'Awesome2'}),
(a1)-[:PHOTOGRAPHED_BY]->(a2)
----
//graph
== Who took pics of me!!
[source,cypher]
----
MATCH (a:Artist)<-[:PHOTOGRAPHED_BY]-(p:Artist)
RETURN a.name as artist, p.name as photographer
----
//table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment