This is an old revision of the document!
## 常用查询
随机查询几条数据: db.<collection>.aggregate([{$sample:{size:3}}]).pretty()
分组计数:db.<collection>.aggregate([{“$group": {_id: "$<field_name>”, count:{$sum:1}}}])