$uuid
Returns a random UUID.
Options¶
type
(optional) The data type of the UUID (BINARY
orSTRING
). DefaultBINARY
.
Example¶
{
"uuid": "$uuid"
}
{
"stringUuid": { "$uuid": "STRING" }
}
{
"uuid": {
"$binary": {
"base64": "2dFU/OjFRZac1SJzI1PDXw==",
"subType": "04"
}
}
}
{
"stringUuid": "606340f0-fceb-419b-91c5-fdf192d08fad"
}
{
"uuid": UUID("ee780ef4-362f-45ca-a816-55120e0afe18")
}
{
"stringUuid": "606340f0-fceb-419b-91c5-fdf192d08fad"
}