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

34 views
Skip to first unread message

אלה וייס

unread,
Aug 15, 2016, 6:15:57 AM8/15/16
to 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

unread,
Aug 15, 2016, 11:00:36 AM8/15/16
to 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.

אלה וייס

unread,
Aug 16, 2016, 12:43:31 AM8/16/16
to 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, מאת אלה וייס:

אלה וייס

unread,
Aug 16, 2016, 12:49:16 AM8/16/16
to 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, מאת אלה וייס:
Reply all
Reply to author
Forward
0 new messages