Answers for "count unique documents based on field - mongodb"

4

mongodb count distinct

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

Code answers related to "count unique documents based on field - mongodb"

Browse Popular Code Answers by Language