Sukaant,

Thanks for responding. I am trying to use py2neo libraries. Is there a 
py2neo equivalant way to do this?
I see the documentation here 
http://py2neo.org/2.0/essentials.html#py2neo.Graph.merge but this seem to 
be for only one property.

- Shekar

On Tuesday, 16 June 2015 23:31:01 UTC-7, Sukaant Chaudhary wrote:
>
> Sekhar,
> Try the following query:
> MERGE (person:Person {Name:"Shekar", Address:"abc123"}) ON CREATE SET 
> person.kids = 3 RETURN person;
>
> Hope this will help !
>
> -Sukaant Chaudhary
> <http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>
>
> On Wed, Jun 17, 2015 at 11:51 AM, Shekar Tippur <[email protected] 
> <javascript:>> wrote:
>
>> Hello,
>> I want to create an object only when 2 attributes of the object are unique
>>
>> For example
>>
>> the object is
>>
>> Person{"Name":"Shekar", "Address":"abc123", "kids":"3"}
>>
>> I want to create this node only if name and address do not match with ore 
>> existing records.
>>
>> I was trying graph.schema.create_uniqueness_constraint("Person", "Name"). 
>> How do I extend this to include address as well.
>>
>> - Shekar
>>
>> -- 
>> 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] <javascript:>.
>> 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