mongodb add a new document to an array of documents code example
Example 1: mongodb push to arry in update
db.collection.update({_id:xx}, {$push:{letters : {$each:['first one'], $position:0}}})
Example 2: insert property multiple documents mongodb
db.myCollection.update({}, {$set: {"isOpen": false}}, false, true)