I want to add several items to arrays of several rows in Mongo. How can I do this?
I want to start with this:
{\'x\': \'h\', arr: [1,2,3] } {\'x\':
the simplest approach is by using a conventional update operation
db.urColl.update( { x: "h" }, { $push: { arr: { $each: [6,8] } } }, { multi: true } );`