OPTIONS

Aggregation Commands

Aggregation Commands

Name Description
aggregate Performs aggregation tasks such as group using the aggregation framework.
count Counts the number of documents in a collection.
distinct Displays the distinct values found for a specified key in a collection.
group Groups documents in a collection by the specified key and performs simple aggregation.
mapReduce Performs map-reduce aggregation for large data sets.

Aggregation Methods

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

Was this page helpful?

Yes No

Thank you for your feedback!

We're sorry! You can Report a Problem to help us improve this page.