$set
Sets the value of fields in documents, creating new fields if they don't exist or updating existing field values.
Syntax
{ $set: { <field1>: <value1>, <field2>: <value2>, ... } }
Parameters
field
stringrequiredField name to create or update
value
objectrequiredValue to assign to the field