Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for update overwrite option #2144

Closed
newmanw opened this issue Jun 13, 2014 · 2 comments
Closed

Documentation for update overwrite option #2144

newmanw opened this issue Jun 13, 2014 · 2 comments
Milestone

Comments

@newmanw
Copy link

newmanw commented Jun 13, 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.

@kevinoid
Copy link
Contributor

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 vkarpov15 changed the title FEATURE: Would be nice to update without '$set' Documentation for update overwrite option Jun 27, 2014
@vkarpov15
Copy link
Collaborator

Good call @kevinoid . @newmanw, you can do this using the overwrite option managed above, its just not documented now.

@vkarpov15 vkarpov15 added this to the 3.8.13 milestone Jun 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants