$bitsAnySet
The `$bitsAnySet` operator is used to match documents where any of the specified bit positions are set (that is, are 1). This operator is useful for filtering documents based on at least one bit being set.
Syntax
{
<field>: { $bitsAnySet: <bitmask> }
}
Parameters
field
stringrequiredThe field in the document on which the bitwise operation is to be performed.
<bitmask>
numberrequiredA bitmask indicating which bits should be checked for being set in the field's value.