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/Projection

MongoDB Query Language (MQL) Projection Operators

$elemMatch

Projects only the first element from an array that matches the specified query condition, useful for returning specific array elements.

$meta

Returns metadata associated with documents in the result set, particularly useful for accessing text search scores and other query execution metadata.

$slice

Controls the number of elements returned from an array field, allowing you to limit array results or skip elements.

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.