This repository was archived by the owner on Oct 17, 2022. It is now read-only.
Conversation
eiri
suggested changes
Oct 26, 2017
Member
eiri
left a comment
There was a problem hiding this comment.
COPY actually can be used to overwrite an existing target, when Destination set to the target id with its revision, as described here
The only clarification possibly needed is that it doesn't have to be a full URL in Destination when doc copied to the same db, it could be just in form of id?rev=1-abcd
Member
Author
|
Ahh thanks! I think it's worth mentioning that in the description of the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The documentation suggests that COPY can be used to overwrite the target document, but there's no (obvious) way to actually do this. The
revparameter is used for the source, and there is no (documented/obvious) way to specify the rev for the target document to update. This leads me to believe it is mis-documented.If someone can explain that my assumption is incorrect, I'll instead update the docs to explain how to overwrite the target.