📅  最后修改于: 2022-03-11 14:48:17.459000             🧑  作者: Mango
//Update all documents with "oldName" to "newName"
db.names.updateMany({ "name": "oldName" }, { $set: { "name" : "newName" } })