Thanks for your response, Michael. I actually used a bad example! The 
actual case that I am working on is a "Product" node, where the product has 
a name, and a version. Two products may have the same name, but different 
versions. Also, a product with a newer version should have a "super 
product", from which it may inherit some connections.

Thanks, and have a great day.

Diaa


On Wednesday, April 6, 2016 at 10:54:58 AM UTC-4, Michael Hunger wrote:
>
> Shouldn't passport be unique??
>
> You can use an array property or string concat for the unique property
>
> Von meinem iPhone gesendet
>
> Am 06.04.2016 um 15:09 schrieb Diaa ElKott <[email protected] <javascript:>
> >:
>
> Thanks a lot for your prompt response, Clark; it is most appreciated! I 
> had hoped that there would be a way to apply this functionality within the 
> database, but looks like I will have to implement it in the UI. I also 
> found this link 
> <http://jexp.de/blog/2015/04/on-neo4j-indexes-match-merge/> which seems 
> to elaborate on this topic.
>
> Thanks again, and have a great day.
>
> Diaa ElKott
>
> On Wednesday, April 6, 2016 at 9:03:14 AM UTC-4, Clark Richey wrote:
>>
>> 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].
>> 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] <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