But then 456 is not returned, or? Sent from mobile device
Am 06.06.2014 um 14:42 schrieb Michael Azerhad <[email protected]>: > Hi Michael :) > > Great, works like a charm. > > I reduced it to: > > MATCH (:User {id: "456"})-[:PARTICIPATES]->(meeting:Meeting {id: "123"}), > (user)-[:PARTICIPATES]->(meeting) > RETURN user > > Thanks a lot, > > Michael > > On Friday, June 6, 2014 1:42:29 PM UTC+2, Michael Hunger wrote: >> >> MATCH (:User {id: "456"})-[:PARTICIPATES]->(meeting:Meeting {id: "123"}) >> MATCH (user)-[:PARTICIPATES]->(meeting) >> RETURN user >> >> Sent from mobile device >> >> Am 06.06.2014 um 13:25 schrieb Michael Azerhad <[email protected]>: >> >>> MATCH (user)-[:PARTICIPATES]->(meeting:Meeting {id: "123"}) >>> RETURN user >>> >>> This query returns all users participating to the Meeting `123`. >>> >>> Now I want to return all users participating to the Meeting `123` ONLY if >>> user `456` participates in it. >>> >>> So concretely, if user1, user2 and user3 participates to the Meeting `123`, >>> I don't want to return them. >>> >>> However if user1, user456 and user3 participates, I want to return all of >>> them (since `456` exists). >>> >>> >>> How could I achieve this query? >>> I thought about `WHERE` mixed with `ANY` but didn't succeed. >>> >>> -- >>> 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. -- 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.
