单一聚合 命令文档
一、db.collection.count()
1.1 认识
db.collection.count()
返回集合或视图中文档的数量。
二、db.collection.distinct()
2.1 认识
db.collection.distinct()
返回具有指定字段的不同值的文档数组。
三、db.collection.estimatedDocumentCount()
3.1 认识
db.collection.estimatedDocumentCount()
返回集合或视图中文档的近似数量。