MATCH (n:Person)-[:REL1]->(m1), MATCH (n)-[:REL2]-(m2) Unwind [m1, m2] as m Return distinct m
Sent from mobile device Am 19.07.2014 um 12:10 schrieb Alx <[email protected]>: > Is it possible to apply DISTINCT on a consolidated list of nodes using cypher? > > I have the following query: > > MATCH (n:Person)-[:REL1]->(m1), MATCH (n)-[:REL2]-(m2) RETURN m1, m2 > > > But I want to return DISTINCT(m1+m2) so that only distinct nodes are returned > from both MATCH. Is it possible? > -- > 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.
