SyntaxFix
Write A Post
Hire A Developer
Questions
if you are using mongoose try this,after mongoose connection
async ()=> await Mongoose.model("collectionName").updateMany({}, {$set: {newField: value}})