SurrealDB Docs Logo

Enter a search query

UUIDs

UUIDs represent UUID v4 and v7 values. They can be obtained via either the:

Note

As of v2.0.0, SurrealDB no longer eagerly converts a string into a UUID. An implicit u prefix or cast using <uuid> is required instead.

rand::uuid::v4(); rand::uuid::v7(); <uuid> "a8f30d8b-db67-47ec-8b38-ef703e05ad1b"; u"a8f30d8b-db67-47ec-8b38-ef703e05ad1b";
© SurrealDB GitHub Discord Community Cloud Features Releases Install