Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
In MongoDB aggregation, combining $match before $group is often done because:
$match automatically sorts data
$match enforces schema validation
$group can only work after $match
$match reduces documents early, making $group faster
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!