how to receive unique value and count from mongodb api code example Example: mongodb distinct Db.collection.distinct('searchField')