mongodb distinct column values code example Example: mongodb distinct Db.collection.distinct('searchField')