Comment mettre à jour la collection MongoDB avec un nouveau champ
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": ""}})