DocumentDB LogoDocumentDB
HomeGitHubDiscordDocsBlogs
Back to DocumentationMQL Documentation
CommandsAggregationQuery And Write
OperatorsAccumulatorAggregationArithmetic ExpressionArray ExpressionArray QueryArray UpdateBitwiseBitwise QueryBitwise UpdateBoolean ExpressionComparison QueryConditional ExpressionData SizeDate ExpressionElement QueryEvaluation QueryField UpdateGeospatialLogical QueryMiscellaneousObject ExpressionProjectionSet ExpressionTimestamp ExpressionVariable ExpressionWindow
Reference/Operators/Boolean Expression

MongoDB Query Language (MQL) Boolean Expression Operators

$and

Performs logical AND operation on array of expressions, returning true only if all expressions evaluate to true.

$not

Performs logical NOT operation on an expression, returning the opposite boolean value of the input expression.

$or

Performs logical OR operation on array of expressions, returning true if any expression evaluates to true.

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.