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/Object Expression

MongoDB Query Language (MQL) Object Expression Operators

$mergeObjects

Combines multiple documents into a single document, merging fields from the input documents with later documents overriding fields from earlier documents.

$objectToArray

Converts an object to an array of key-value pairs, where each element is a document with 'k' (key) and 'v' (value) fields.

$setField

Adds, updates, or removes fields in a document, allowing dynamic field manipulation with support for computed field names and conditional operations.

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.