Class Summary Class Description AddFieldsAdds new fields to documents. AutoBucketCategorizes incoming documents into a specific number of groups, called buckets, based on a specified expression. BucketCategorizes incoming documents into groups, called buckets, based on a specified expression and bucket boundaries. CollectionStatsReturns statistics regarding a collection or view. Count CurrentOpReturns a stream of documents containing information on active and/or dormant operations as well as inactive sessions that are holding locks as part of a transaction. FacetProcesses multiple aggregation pipelines within a single stage on the same set of input documents. GeoNearOutputs documents in order of nearest to farthest from a specified point. GraphLookupPerforms a recursive search on a collection, with options for restricting the search by recursion depth and query filter. GroupGroups input documents by the specified _id expression and for each distinct grouping, outputs a document. Group.GroupIdDefines a group ID IndexStatsReturns statistics regarding the use of each index for the collection. LimitLimits the number of documents passed to the next stage in the pipeline. LookupPerforms a left outer join to an unsharded collection in the same database to filter in documents from the “joined” collection for processing. MatchLimits the number of documents passed to the next stage in the pipeline. Merge<M>Writes the results of the aggregation pipeline to a specified collection. Out<O>Takes the documents returned by the aggregation pipeline and writes them to a specified collection. PlanCacheStatsReturns plan cache information for a collection. ProjectionPasses along the documents with the requested fields to the next stage in the pipeline. RedactRestricts the contents of the documents based on information stored in the documents themselves. ReplaceRootReplaces the input document with the specified document. ReplaceWithReplaces the input document with the specified document. SampleRandomly selects the specified number of documents from its input. SkipRandomly selects the specified number of documents from its input. SortSorts all input documents and returns them to the pipeline in sorted order. SortByCountGroups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group. StageBase type for stages. UnionWithPerforms a union of two collections; i.e. UnsetRemoves/excludes fields from documents. UnwindDeconstructs an array field from the input documents to output a document for each element.
Enum Summary Enum Description Sort.DirectionThe sort types