1. 4
    Group By and Sum in MongoDB
    2m 7s

Group By and Sum in MongoDB

Kamran Ahmed
InstructorKamran Ahmed

Share this video with your friends

Send Tweet

In this lesson, we learn how to group documents in a collection using $group operator similar to GROUP BY in SQL. We also look at $sum operator and see how we can use it to count the number of documents as well as get sum of some field in our grouped results.

Here is the list of operators that we cover in this lesson:

You can see the list of all the available operators in the MongoDB docs.