Como atualizar a coleção MongoDB com um novo 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": ""}})