Skip to content

Instantly share code, notes, and snippets.

@peterneubauer
Last active December 19, 2015 00:19
Show Gist options
  • Save peterneubauer/5867828 to your computer and use it in GitHub Desktop.
Save peterneubauer/5867828 to your computer and use it in GitHub Desktop.
== Page view query ==
// console
This is the setup
[source,cypher]
----
CREATE (pn1:p_n { name:'pn1',oldid:1 })
CREATE (vn1:v_n { name:'vn1', oldid:2 })
CREATE (vsn1:v_s_n { name:'vsn1',oldid:3 })
CREATE pn1 <-[:CONNECTED]- vn1 -[:CONNECTED]->vsn1
----
This should deliver 3 columns
[source,cypher]
----
MATCH pn:p_n <-[s]- vn:v_n -[r]-> vsn:v_s_n
RETURN vn.oldid , vn.oldid, pn.oldid
ORDER BY vn.oldid , vn.oldid
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment