nickva commented on issue #3977:
URL: https://github.com/apache/couchdb/issues/3977#issuecomment-1082310495
@ronag thanks for your report.
`key` effectively behaves as if we are setting both
`startkey=$key&endkey=$key`. So every time it is parsed it does exactly that.
However, we do have "keys" which returns an error as you mentioned:
```
http $DB/db/_all_docs'?keys=["c"]&endkey="b"'
HTTP/1.1 400 Bad Request
{
"error": "query_parse_error",
"reason": "`keys` is incompatible with `key`, `start_key` and `end_key`"
}
```
Perhaps `key` it should be translated to `keys=[Key]` internally, instead
and behave similarly, but it maybe a compatibility issue in some cases as well.
It could be a nice improvement for the future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]