//Update all documents with "oldName" to "newName" db.names.updateMany({ "name": "oldName" }, { $set: { "name" : "newName" } })