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

What does this aggregation stage produce in the count field for documents where the tags field is missing entirely?

db.posts.aggregate([ { $group: { _id: "$tags", count: { $sum: 1 } } } ])