MongoDB 去重求总 2019-07-20 MongoDB, 笔记 MongoDB 去重求总1234db.xxx.aggregate([ {$group:{_id:"$name"}}, {$group:{_id:null,count:{$sum:1}}}])