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

Support update that replaces the whole document #83

Open
mattmccutchen opened this issue Feb 11, 2017 · 0 comments
Open

Support update that replaces the whole document #83

mattmccutchen opened this issue Feb 11, 2017 · 0 comments

Comments

@mattmccutchen
Copy link
Collaborator

This package could support update calls that replace the entire document, e.g., collection.update("myId", {a: 1, b: 2}).

The first thing to decide is how such an operation is represented in the transaction history. I have a prototype implementation, based on my prototype of #80, that represents it as a remove followed by an insert. This probably won't work with soft deletes. Alternatively, we could add a new action type, "replace", and try to add support for it in undo and redo without duplicating a ton of code. :/

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

1 participant