$string
Returns a random string.
Options¶
length
(optional) Length of output string. Default5
pool
(optional) Character pool to construct string from. Defaults to alpha, numeric and some symbols.
Example¶
{
"string": {
"$string": {
"length": 20,
"pool": "MONGO40*"
}
}
}
{
"string": "*44NGOMGN*ONOGOO*4O0"
}