Navigation
This version of the documentation is archived and no longer supported.
UUID()
Definition
-
UUID
(<string>)
Generates a BSON UUID object.
Parameter |
Type |
Description |
hex |
string |
Specify a 32-byte hexadecimal string to convert to the UUID BSON subtype. |
Returns: | A BSON UUID object. |
Example
Create a 32 byte hexadecimal string:
Convert it to the BSON UUID subtype: