Replies: 1 comment
-
For comparison, if the document never existed the response includes rows of the form:
Are you wanting a feature where you can ask to not have rows returned at all? Or wanting to not have to deal with the difference between |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
While using _all_docs end point to do a search for the records with specific keys like below:
curl -X POST 'http://X.X.X.X:5984/analysis_db/_all_docs' -u : -H 'Content-Type:application/json' -d '{"keys":["TOP_RISK_2","TOP_RISK_3"]}'
It returns a response as:
{"total_rows":192,"offset":null,"rows":[
{"id":"TOP_RISK_2","key":"TOP_RISK_2","value":{"rev":"54-fa0e4904d88c5d74d4716ac51b311756","deleted":true}},
{"id":"TOP_RISK_3","key":"TOP_RISK_3","value":{"rev":"38-baf385f4bf0cca586a1f8539f35bd2a3","deleted":true}}
]}
However, this is returning deleted documents as well.
Steps to Reproduce
This returns deleted documents in the response.
Expected Behaviour
_all_docs endpoint should return documents which are not deleted or
should provide a flag that will override the default behavior to return the documents which are not deleted.
Your Environment
Couchdb3 downloaded from ibmcom/couchdb3 repo
CURL Command:
curl -X POST 'http://X.X.X.X:5984/analysis_db/_all_docs' -u : -H 'Content-Type:application/json' -d '{"keys":["TOP_RISK_2","TOP_RISK_3"]}'
Response:
{"total_rows":192,"offset":null,"rows":[
{"id":"TOP_RISK_2","key":"TOP_RISK_2","value":{"rev":"54-fa0e4904d88c5d74d4716ac51b311756","deleted":true}},
{"id":"TOP_RISK_3","key":"TOP_RISK_3","value":{"rev":"38-baf385f4bf0cca586a1f8539f35bd2a3","deleted":true}}
]}
Beta Was this translation helpful? Give feedback.
All reactions