MongoDB Query Language (MQL) Bitwise Query Operators
Bitwise query operators are used to query and filter based on bitwise operations.
$bitsAllClear
The $bitsAllClear operator is used to match documents where all the bit positions specified in a bitmask are clear.
$bitsAllSet
The bitsAllSet command is used to match documents where all the specified bit positions are set.
$bitsAnyClear
The $bitsAnyClear operator matches documents where any of the specified bit positions in a bitmask are clear.
$bitsAnySet
The $bitsAnySet operator returns documents where any of the specified bit positions are set to 1.