Answers for "mongodb add to set array element"

6

mongodb push to arry in update

db.collection.update({_id:xx}, {$push:{letters : {$each:['first one'], $position:0}}})
Posted by: Guest on March-22-2020

Code answers related to "mongodb add to set array element"

Browse Popular Code Answers by Language