← BYTES
MongoDB·Starter·Ref: 28.1.8

What does the $group stage in an aggregation pipeline do?

Have a question about this video? Mention reference 28.1.8 when you contact us.

a.Groups documents by a key and computes aggregate values per group
b.Deletes duplicate documents
c.Encrypts a field
d.Renames a collection
$group buckets incoming documents by a specified key and computes aggregate values (sums, counts, averages, etc.) per group, similar to SQL's GROUP BY.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES2818#MongoDB