Answers for "how to find distinct in mongodb"

4

mongodb count distinct

db.collection.distinct('field').length
Posted by: Guest on April-24-2020
1

find distinct in mongodb

db.inventory.distinct( "item.sku", { dept: "A" } )
Posted by: Guest on September-09-2020

Code answers related to "how to find distinct in mongodb"

Browse Popular Code Answers by Language