apoc.create.uuids
In APOC 2025.06, this procedure was removed from the APOC Core library.
Use Cypher’s If you are using APOC 2025.06 or later, the procedure is not available in Cypher 25 but can still be used with Cypher 5. For more information, see APOC and Cypher versions. |
Syntax |
|
||
Description |
Returns a stream of UUIDs. |
||
Input arguments |
Name |
Type |
Description |
|
|
The number of UUID values to generate. |
|
Return arguments |
Name |
Type |
Description |
|
|
The row number of the generated UUID. |
|
|
|
The generated UUID value. |
Usage Examples
The following generates a stream of UUID:
CALL apoc.create.uuids(10);
UNWIND range(0, 9) AS row
RETURN row, randomUUID() AS uuid;
row | uuid |
---|---|
0 |
"e2c84705-5667-4550-b468-9e1faf08c0d7" |
1 |
"7112c6ac-13bc-4c0c-afd8-2c1bc47b9942" |
2 |
"bb4f5089-6907-4550-9b38-919c2400e82c" |
3 |
"40cf6b89-5b42-4792-802c-bc55d03e12e4" |
4 |
"486b2b05-7d73-4f14-ba14-dc4ea72f5335" |
5 |
"3b0e6253-73e1-4b19-a6af-e57164bd34cd" |
6 |
"7f01f2b4-f8bf-4975-9a1f-a4567e70d0f9" |
7 |
"1c2ad4cb-0ba1-412c-baeb-0349126c4938" |
8 |
"52ce2443-8ce5-42c1-8553-349d8dfbefb4" |
9 |
"02111796-7531-41b9-99dc-22c8625009c4" |