Docs Menu

Docs HomeMongoDB Compass

Count Pipeline Results Documents

On this page

  • About this Task
  • Before You Begin
  • Steps
  • Learn More

You can view the number of documents outputted by your pipeline with the count results button.

When you delete or add a document, you must manually refresh the count results value on the Aggregations tab to reflect the new document count.

To count result documents, you must first create and run your aggregation pipeline. You can't count result documents while editing your pipeline.

1

After you run your pipeline, click count results, which appears under the Run button. The count results button will update with the count of resulting documents.

Click the count results link
2

If you edit your pipeline, you must press the button to update your document count.

←  Create a View from Pipeline ResultsSpecify Custom Collation For Your Pipeline →