document
- https://www.mongodb.com/docs/manual/aggregation/
- Operators for aggregation queries https://www.mongodb.com/docs/manual/reference/operator/aggregation/
Classification of Aggregate Query Operators
- arithmetic expression operator
- array expression operator
- boolean expression operator
- comparison expression operator
- conditional expression operator
- …
Common Mongo aggregation operations are compared with mysql queries
SQL | Aggregate |
---|---|
where | $match |
group by | $group |
having | $match |
select | $project |
order by | $project |
limit | $limit |
sum() | $sum |
count() | $sum |
This article is transferred from https://www.wujingquan.com/posts/ea319fa5.html
This site is only for collection, and the copyright belongs to the original author.