Docs HomeMongoDB Manual

Bitwise Query Operators

Bitwise operators return data based on bit position conditions.

Note

For details on a specific operator, including syntax and examples, click on the link to the operator's reference page.

NameDescription
$bitsAllClearMatches numeric or binary values in which a set of bit positions all have a value of 0.
$bitsAllSetMatches numeric or binary values in which a set of bit positions all have a value of 1.
$bitsAnyClearMatches numeric or binary values in which any bit from a set of bit positions has a value of 0.
$bitsAnySetMatches numeric or binary values in which any bit from a set of bit positions has a value of 1.