Answers for "mongo change all documents on field"

-1

mongo change all documents on field

//Update all documents with "oldName" to "newName"
db.names.updateMany({ "name": "oldName" }, {  $set: { "name" : "newName" }  })
Posted by: Guest on June-01-2020

Code answers related to "mongo change all documents on field"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language