March 2019
Intermediate to advanced
394 pages
11h 4m
English
An aggregation pipeline can replace and augment querying operations in the shell. A common pattern for development is as follows:
In the following table, we can see how SQL commands map to the aggregation framework operators:
|
SQL |
Aggregation framework |
|
WHERE/HAVING |
$match |
|
GROUP BY |
$group |
|
SELECT |
$project |
|
ORDER BY |
$sort |
|
LIMIT ... |
Read now
Unlock full access