Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /

Bitwise Query Predicate Operators

Bitwise operators return data based on bit position conditions.

Name
Description

$bitsAllClear

Matches numeric or binary values in which a set of bit positions all have a value of 0.

Matches numeric or binary values in which a set of bit positions all have a value of 1.

Matches numeric or binary values in which any bit from a set of bit positions has a value of 0.

Matches numeric or binary values in which any bit from a set of bit positions has a value of 1.

Back

$size