mongodb find and push to array code example
Example 1: mongodb push to arry in update
db.collection.update({_id:xx}, {$pop:{letters : -1}})
Example 2: mongodb add to array if not exists
db.tags.update(
{name: 'sport'},
{$addToSet: { videoIDs: "34f54e34c" } }
);