Concept Flow - $set operator for setting fields
Start with existing document
Apply $set operator
Check each field in $set
If field exists, update value
If field does not exist, add field with value
Save updated document
End
The $set operator updates specified fields in a document. It changes existing fields or adds new ones if they don't exist.