mongodb find all records with a distinct field value code example Example: mongodb distinct Db.collection.distinct('searchField')