Joined July 2014
·

Snehal Parmar

Pune
·

Posted to MongoDB: find duplicates in a field over 1 year ago

db.MyCollection.aggregate([
{$group : { id: "$myfield" , count : { $sum: 1}}},
{$match : { count : { $gt : 1 } }} ])

Achievements
1 Karma
135 Total ProTip Views
Interests & Skills