Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumMongoDBaggregation $match $groupSingle-choice MCQ

What does this aggregation return for the accumulator behavior shown?

db.sales.aggregate([ { $group: { _id: "$region", firstItem: { $first: "$item" }, total: { $sum: "$amount" } } } ]) // No $sort precedes this $group