MongoDB – aggregate query

document

Classification of Aggregate Query Operators

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.