mongodb find with distinct key code example Example: mongodb distinct Db.collection.distinct('searchField')