Introduction
The $set operator is used to change or add specific fields in a document without replacing the whole document.
You want to update a user's email address in their profile.
You need to add a new field like 'lastLogin' to existing documents.
You want to correct a typo in a product's description.
You want to change the status of an order from 'pending' to 'shipped'.