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]> 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]. > 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.
