You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe what you are requesting is supported by the (currently undocumented, as far as I can tell) option overwrite. Calling update with {overwrite: true} will not convert the update to a $set operation. However, if this is the case, the issue would be to document this behavior.
vkarpov15
changed the title
FEATURE: Would be nice to update without '$set'
Documentation for update overwrite option
Jun 27, 2014
From docs for Model.update:
All top level keys which are not atomic operation names are treated as set operations.
It would be great if at some point there was an option on update to not do this.
The text was updated successfully, but these errors were encountered: