mongodb compass add field code example Example: insert property multiple documents mongodb db.myCollection.update({}, {$set: {"isOpen": false}}, false, true)