get distinct values on mongodb query code example Example: mongodb distinct Db.collection.distinct('searchField')