Re: [Neo4j] I'd like to merge collections and get the nodes from them

2014-06-06 Thread Michael Hunger
Which version? If you update you can use unwind and distinct Otherwise reduce with case to not add duplicates to the accumulator Sent from mobile device Am 06.06.2014 um 03:50 schrieb Frandro : > With the following query, I get two rows filled with nodes. > > START src=node(38), dest=node(24

[Neo4j] I'd like to merge collections and get the nodes from them

2014-06-05 Thread Frandro
With the following query, I get two rows filled with nodes. START src=node(38), dest=node(24) MATCH p=src-[:KNOWS*1..6]-dest RETURN filter(x IN nodes(p) WHERE x <> src and x <> dest) [Node[39]{name:"KX"},Node[15]{name:"QQ"},Node[29]{name:"QP"},Node[26]{name:"ux"}] [Node[39]{name:"KX"},Node[15]{n