find unique values of field mongodb code example Example: mongodb distinct Db.collection.distinct('searchField')