// If array field not in find, use $[] db.products.updateMany({}, { $set:{ "variants.$[]._id": new ObjectId() } })
db.myCollection.update({"_id" : 1, "lb.id" : 2},{$set : {"lb.$.sc" : 17}})