db.getCollection('record').aggregate([
{ $group: { _id : '$hash', count: { $sum : 1 } } },
{ $match: { count: { $gt : 1} } }
])
微信扫一扫
db.getCollection('record').aggregate([
{ $group: { _id : '$hash', count: { $sum : 1 } } },
{ $match: { count: { $gt : 1} } }
])
相关推荐