Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

mongo change all documents on field

//Update all documents with "oldName" to "newName"
db.names.updateMany({ "name": "oldName" }, {  $set: { "name" : "newName" }  })
 
PREVIOUS NEXT
Tagged: #mongo #change #documents #field
ADD COMMENT
Topic
Name
6+7 =