how to add new field and insert data in mongo code example
Example: add property to all documents mongo
db.myCollection.update({}, {$set: {"isOpen": false}}, false, true)
db.myCollection.update({}, {$set: {"isOpen": false}}, false, true)