This article is part of Robert Sheldon’s continuing series on Mongo DB. To see all of the items in the series, click here.
In the previous article in this series, I discussed how to use a find statement to retrieve data from a MongoDB collection. However, the find method is not the only option for retrieving document data. Another important method is aggregate, which lets you group documents, perform calculations on those groups, and in other ways extract the data you need from your database collections.
Along with the find method, the aggregate method is one of the most important