| This page explains what the Aggregations tab does and how to access it in MongoDB Compass. This section also gives instructions for staging aggregations on a selected collection. |
MongoDB aggregations
A MongoDB aggregation is a user created filter that groups incoming and existing data on a collection. These aggregates are created on stages, which return the combined data that the user selects.

| For more information on the different types of filters MongoDB offers users, see https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline/ |
Stage aggregations
1. Select the collection with the data you would like to stage an aggregation for.
2. Select the Aggregations tab on the collection Compass dashboard.

3. Select the refresh button bellow the tool bar to make sure your data is up to date before staging an aggregation.

4. Select Add Stage beneath the preview of your documents.

5. Select the Select drop-down menu on the created stage to choose from the aggregation options. The sample you select will appear on the right-hand side of the stage.


| For information on aggregate options and proper syntax, see https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline/ |