Neo doesn’t support unique constraints across multiple properties. You would have to create a compound property that contains that value and create a unique constraint on that single property.
- Clark > On Apr 6, 2016, at 9:01 AM, Diaa ElKott <[email protected]> wrote: > > Hello, all: > > I was wondering if you can help me with an answer to the subject question. > For example, consider the following "Person" node: > > CREATE (john:Person {name:'John B. Smith', dOB:'1980-06-05', > passportNo:'CAN-12345'}) > > I would like to create a constraint on the "Person" lable so as to enforce > uniqueness of the combination of name+dOB+passportNo. > > Thanks, and have a great day. > > Diaa ElKott > > -- > 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] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <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.
