MongoDB card reviewmedium

What is the $group stage in MongoDB aggregation?

The $group stage combines documents based on a specified field and performs calculations such as count, sum, average, minimum, and maximum. It is commonly used for reporting and analytics operations.

JB

Jeevan Bhargav

Audited by Creator

This answer is calibrated for technical interviews. Verify benchmarks in local sandboxes before deploying.