Cómo actualizar la colección MongoDB con un nuevo campo
db.collection.updateMany({}, {$set: {"fieldName": ""}})
Theophilus Boakye
db.collection.updateMany({}, {$set: {"fieldName": ""}})
db.collection.updateMany({}, {$set: {"fieldName": ""}})
db.collection.updateMany({}, {$set: {"fieldName": ""}})
db.collection.updateMany({}, {$set: {"fieldName": ""}})
db.collection.updateMany({}, {$set: {"fieldName": ""}})
db.collection.updateMany({}, {$set: {"fieldName": ""}})