diff --git a/README.md b/README.md index 3894334..aa1ff7e 100644 --- a/README.md +++ b/README.md @@ -458,7 +458,7 @@ db.update({ _id: 'id6' }, { $pull: { fruits: $in: ['apple', 'pear'] } }, {}, fun // $each can be used to $push or $addToSet multiple values at once // This example works the same way with $addToSet -db.update({ _id: 'id6' }, { $push: { fruits: ['banana', 'orange'] } }, {}, function () { +db.update({ _id: 'id6' }, { $push: { fruits: {$each: ['banana', 'orange'] } } }, {}, function () { // Now the fruits array is ['apple', 'orange', 'pear', 'banana', 'orange'] }); ```