$bitsAllSet
The `$bitsAllSet` operator is used to match documents where all the specified bit positions are set (that is, are 1). This operator is useful for performing bitwise operations on fields that store integer values.
Syntax
{
<field>: { $bitsAllSet: <bitmask> }
}
Parameters
field
stringrequiredThe field in the document on which the bitwise operation is to be performed.
<bitmask>
numberrequiredA bitmask indicating which bits must be set in the field's value.