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 <[email protected]>:

> 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]{name:"QQ"},Node[29]{name:"QP"},Node[26]{name:"ux"},Node[32]{name:"uu"}]
> 2 rows
> 
> But I'd like to get the merged nodes from the rows like
> ["KX", "QQ", "QP", "ux", "uu"]
> 
> How should the query be like?
> 
> Thank you in advance.
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to