Joined October 2013
·

Łukasz Wiktor

Poland
·
·

Posted to Mongodb $set $unset over 1 year ago

Notice that the update methods you presented above will update only the first matched document.
To update all matching documents you need to add third parameter: {multi: true}

I'm looking forward to the next post.

Something is wrong with the last row in the *Size column. It looks like it should be a total while for 8.2kB + 4.1kB it presents 204B instead of 12.3kB.

Achievements
81 Karma
2,066 Total ProTip Views