How to create unique property in datastax graph ? (like promary key)

34 vues
Accéder directement au premier message non lu

אלה וייס

non lue,
15 août 2016, 06:15:5715/08/2016
à Aurelius

()schema.propertyKey('myUniqueProperty').Text().ifNotExists().create


I would like myUniqueProperty to be unique.

How can it done ?

(like a primary key in db)

please help

Daniel Kuppitz

non lue,
15 août 2016, 11:00:3615/08/2016
à aureliu...@googlegroups.com
Check out custom vertex ids.

Cheers,
Daniel


--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraphs+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/f277f3aa-0bfb-48e3-8ed8-93675ec35207%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

אלה וייס

non lue,
16 août 2016, 00:43:3116/08/2016
à Aurelius

Thanks for your reply but I would like to use the default vertex id and add a new property that has a unique value for each vertex

בתאריך יום שני, 15 באוגוסט 2016 בשעה 13:15:57 UTC+3, מאת אלה וייס:

אלה וייס

non lue,
16 août 2016, 00:49:1616/08/2016
à Aurelius

For example I would like phone vertex to have a property phone number to be unique , or person identity to be a unique property ..

or order number to be unique ..
בתאריך יום שני, 15 באוגוסט 2016 בשעה 13:15:57 UTC+3, מאת אלה וייס:
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message