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

Add a .merge function #3

Open
nozzlegear opened this issue Mar 12, 2017 · 0 comments
Open

Add a .merge function #3

nozzlegear opened this issue Mar 12, 2017 · 0 comments

Comments

@nozzlegear
Copy link
Owner

Updating a document right now requires pulling the current document from the database, modifying it, and then sending the entire thing back through the PUT request with the revision. CouchDB supports an update function that we can use to merge partial documents into the original document and then return the new doc. It would need to be set up in a unique view, so Davenport should check that the view with update function has been set up before running the merge function.

https://wiki.apache.org/couchdb/Partial_Updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant