mongo distinct on array field where code example Example: mongodb distinct Db.collection.distinct('searchField')