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\':
$pushAll Deprecated since version 2.4: Use the $push operator with $each instead.
$pushAll
$push
$each
The $pushAll operator appends the specified values to an array.
The $pushAll operator has the form:
{ $pushAll: { : [ , , ... ] } }
If you specify a single value, $pushAll will behave as $push.