mongodb add elements code example
Example 1: insert command mongo
db.collection.insert( { item: "card", qty: 15 } )
Example 2: mongodb push to arry in update
db.collection.update({_id:xx}, {$pop:{letters : -1}})
db.collection.insert( { item: "card", qty: 15 } )
db.collection.update({_id:xx}, {$pop:{letters : -1}})