Check out example codes for "mongo change all documents on field". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com