Thanks Luanne, it worked for me fine.

-Sukaant Chaudhary
<http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>


On Wed, Aug 6, 2014 at 12:18 PM, Luanne Coutinho <[email protected]>
wrote:

> Hi Sukaant,
>
> You can check that b does not already have an existing relation of this
> type in any direction to any other node.
> e.g.
>
> MATCH (b:Person { name:'b' })
> MATCH (c:Person { name:'c' })
> WHERE NOT ((b)-[:Husband]-())
> MERGE (c)-[:Husband]->(b) //no relation is created since b already has a
> Husband relation from a
>
> Regards
> Luanne
>
>
> On Wed, Aug 6, 2014 at 11:35 AM, Sukaant Chaudhary <
> [email protected]> wrote:
>
>> Hi,
>> I want to make unique relation between a->b.
>> Now we cannot make relation between c->b.
>>
>> For eg: a is the husband of b, now c cannot be the husband of b.
>>
>> Please suggest.
>>
>> -Sukaant Chaudhary
>> <http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>
>>
>> --
>> 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.

Reply via email to