apoc.create.uuid

This function is deprecated. Use the Neo4j randomUUID() function instead.

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"