Skip to content

Glossary: MongoDB

$addToSet

An update operator that adds an item to a list only if it isn't already there. Adding the tag "gift" to the mug twice stores it once.

Where the book teaches it

Related terms

$push$pullUpdate operator