Update Documents - Part 3

Learn and practice the addToSet, [], and each when updating documents.

$addToSet operator

The $addToSet operator is similar to the $push operator, except it only adds the value if it doesn’t already exist.

Get hands-on with 1400+ tech skills courses.