START n=node(3)MATCH (n)-[:BLOCKS|KNOWS]->(x)RETURN xWHERE type(r)="BLOCKS" OR type(r)="KNOWS"STARTn=node(3)MATCH(n)-[r]->(x)
RETURNx
Cheers
Michael[:TYPE*minHops..maxHops]->.
Query
START a=node(3), x=node(2, 4)MATCH a-[:KNOWS*1..3]->xRETURN a,x |
START a=node(3), x=node(2, 4)MATCH a-[:KNOWS|BLOCKS*1..3]->xRETURN a,xAbove method worked in 1.8, but not in 1.6 (sorry, not 1.7). How can I reproduce same effect. In this case, assigning relationship as a variable r results in IterableType error. Please suggest any alternatives. Or anyway to accomplish this in Java in single query |
...