apoc.create.uuid

In APOC 2025.06, this function was removed from the APOC Core library. Use Cypher’s randomUUID() function instead.

If you are using APOC 2025.06 or later, the function is not available in Cypher 25 but can still be used with Cypher 5. For more information, see APOC and Cypher versions.

Details

Syntax

apoc.create.uuid()

Description

Returns a UUID.

Returns

STRING

Usage Examples

The following generates a new UUID:

apoc.create.uuid
RETURN apoc.create.uuid() AS Output;
Cypher’s randomUUID() function
RETURN randomUUID() AS Output;
Results
Output

"3bfef4ba-564e-4ce1-b3af-616651f90aff"