Aggregation Commands

On this page

Note

For details on specific operator, including syntax and examples, click on the specific operator to go to its reference page.

Aggregation Commands

NameDescription
aggregatePerforms aggregation tasks such as group using the aggregation framework.
countCounts the number of documents in a collection or a view.
distinctDisplays the distinct values found for a specified key in a collection or a view.
groupDeprecated . Groups documents in a collection by the specified key and performs simple aggregation.
mapReducePerforms map-reduce aggregation for large data sets.

Aggregation Methods

NameDescription
db.collection.aggregate()Provides access to the aggregation pipeline.
db.collection.group()Deprecated. Groups documents in a collection by the specified key and performs simple aggregation.
db.collection.mapReduce()Performs map-reduce aggregation for large data sets.