SyntaxFix
Write A Post
Hire A Developer
Questions
Since MongoDB version 3.2 you can use updateMany():
> db.yourCollection.updateMany({}, {$set:{"someField": "someValue"}})