1
Aggregation Framework
hard
Refer to the exhibit. What happens to documents in the collection that do not contain the 'category' field?
Exhibit
db.collection.aggregate([ { $group: { _id: "$category", total: { $sum: "$price" } } } ])C100DEV
Study mode — explanations shown
Aggregation Framework
Refer to the exhibit. What happens to documents in the collection that do not contain the 'category' field?
db.collection.aggregate([ { $group: { _id: "$category", total: { $sum: "$price" } } } ])