Answers for "how to get a count of unique values in collection mongodb"

4

mongodb count distinct

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

Code answers related to "how to get a count of unique values in collection mongodb"

Browse Popular Code Answers by Language