newbie question, I’m new to the TigerGraph platform.
Does tigergraph provide Vertex ID generation?
In Person–>Birth relationship model, how do I generate unique ID to Birth vertex?
newbie question, I’m new to the TigerGraph platform.
Does tigergraph provide Vertex ID generation?
In Person–>Birth relationship model, how do I generate unique ID to Birth vertex?
Hi @porscheme ,
in your case if you create the edge person <-> birthdate, when a birthdate is not existing it will be created as new vertex, i.e.
Joe, 19910815
Joanne, 19921117
Trish, 19810913
John, 19921117
Adding this 4 records as edge it would create 3 birthday vertices. Since John is born on the same day as Joanne, the edge would be added to the vertex created for Joanne.
Note that you can mix different data types (String <-> Integer).
For date type I’m using Int, since it’s easier to manage than String.
Hope this was clear …
Bruno
Yes, thanks for the quick reply.
My question was more on auto id creation to use as PRIMARY_ID
If you use the example above, an ID would be created.
Primary_ID can be anything, you can define a unique string based on your attributes when you do data load, i.e NAME_BIRTHDATE, NAME#BIRTHDATE or similar.
You don’t need to treat Primary_ID like ID in a relational database.
Bruno