The aggregation framework permits you to investigate your information progressively. Utilizing the structure, you can make a total pipeline that comprises at least one phase. Each stage changes the reports and passes the result to the following stage.
Assuming you're acquainted with the Linux pipe ( | ), you can consider the collection pipeline fundamentally the same as the idea. Similarly, as result from one order is passed as a contribution to the following order when you use funneling, the yield from one phase is passed as a contribution to the following stage when you utilize the collection pipeline.
The conglomeration structure has an assortment of stages accessible for you to utilize. Today, we'll talk about the fundamentals of how to utilize $match, $group, $sort, and $limit. Note that the conglomeration structure has numerous other strong stages including $count, $geoNear, $graphLookup, $project, $unwind, and others.
Top comments (0)