Last active
December 19, 2015 00:19
-
-
Save peterneubauer/5867828 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
== 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