DocumentDB LogoDocumentDB
HomeGitHubDiscordDocsPackagesBlogs
Back to DocumentationMQL Documentation
Commands
Aggregation
Query And Write
Operators
Accumulators
Aggregation
Arithmetic Expression
Array Expression
Array Query
Array Update
Bitwise
Bitwise Query
$bitsAllClear
$bitsAllSet
$bitsAnyClear
$bitsAnySet
Bitwise Update
Comparison Query
Conditional Expression
Data Size
Date Expression
Element Query
Evaluation Query
Field Update
Geospatial
Literal Expression
Logical Query
Miscellaneous
Miscellaneous Query
Object Expression
Projection
Set Expression
Timestamp Expression
Variable Expression
Window Operators
Reference/Operators/Bitwise Query

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.

Copyright © DocumentDB a Series of LF Projects, LLC. For web site terms of use, trademark policy and other project policies please see https://lfprojects.org.