Bitwise Query Operators
MongoDB 5.0 is end of life as of October 2024. This version of the documentation is no longer
supported. To upgrade your 5.0 deployment, see the MongoDB 6.0 upgrade procedures.
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.
Name | Description |
---|---|
Matches numeric or binary values in which a set of bit positions all have a value of | |
Matches numeric or binary values in which a set of bit positions all have a value of | |
Matches numeric or binary values in which any bit from a set of bit positions has a value of | |
Matches numeric or binary values in which any bit from a set of bit positions has a value of |