September 2018
Beginner to intermediate
192 pages
4h 37m
English
The aggregation pipeline stages are represented by stage operators. In the following illustration, we formulate a command which has two stages. The first stage performs a match (see the discussion of the $match operator that follows), followed by a grouping stage (see $group). You can have as many or as few stages as desired. Each stage produces results which are put back into the pipeline, and subsequently processed by the next stage:

The discussion in this section summarizes key stage operators, which can be used in conjunction with the db.collection.aggregate() command. The examples shown here assume that there's ...
Read now
Unlock full access