mongodb compass updatemany code example Example: updatemany mongodb db.collection.updateMany(filter, update, options)