Hi,
I want to make sure the uuid value is unique across my labels in the database.
Using the following procedure I can make uuid unique in a particular label
CREATE CONSTRAINT FOR (t:Person) REQUIRE t.uuid IS UNIQUE
CALL apoc.uuid.install("Person", {addToExistingNodes : false});
But how to make it unique across the whole db?
Any help is much appreciated.
Thanks,
Sahil
A uuid is universally unique by design.
So apoc.create.uuid() always returns an unique uuid value for my database?
Yes, If it is a proper implantation.
The preferred function for generating a uuid is "randomUUID()". I believe the apoc function has been deprecated.