DocumentDB LogoDocumentDB
HomeGitHubDiscordDocsPackagesBlogs
Back to DocumentationMQL Documentation
Commands
Aggregation
Query And Write
Operators
Accumulators
Aggregation
Arithmetic Expression
Array Expression
Array Query
Array Update
Bitwise
$bitAnd
$bitNot
$bitOr
$bitXor
Bitwise Query
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

MongoDB Query Language (MQL) Bitwise Operators

Bitwise operators perform operations on the binary representation of numbers.

$bitAnd

The $bitAnd operator performs a bitwise AND operation on integer values and returns the result as an integer.

$bitNot

The $bitNot operator performs a bitwise NOT operation on integer values and returns the result as an integer.

$bitOr

The $bitOr operator performs a bitwise OR operation on integer values and returns the result as an integer.

$bitXor

The $bitXor operator performs a bitwise XOR operation on integer values.

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.