$bitsAllClear
The `$bitsAllClear` operator is used to match documents where all the bit positions specified in a bitmask are clear (that is, 0). This operator is useful in scenarios where you need to filter documents based on specific bits being unset in a binary representation of a field.
Syntax
{
<field>: { $bitsAllClear: <bitmask> }
}
Parameters
field
stringrequiredThe field in the document on which the bitwise operation is to be performed.
<bitmask>
numberrequiredA bitmask where each bit position specifies the corresponding bit position in the field's value that must be clear (0).