exists
Creates an existence check condition. Matches documents where the specified field exists (or doesn't exist based on the exists parameter).
Return
A new exists condition.
Parameters
field
The field name to check for existence.
exists
Whether to check for existence (true) or non-existence (false). Defaults to true.