`$set` assigns a value to a field (and creates it if it doesn’t exist). It updates only selected fields instead of replacing the whole document.