Skip to content

Glossary: MongoDB

$set

An update operator that sets the named fields to new values and leaves all other fields alone. It's the safe everyday way to change a document.

Where the book teaches it

Related terms

$unsetreplaceOneUpdate operator