get unique filed values mongo code example Example: mongodb distinct Db.collection.distinct('searchField')