-
Notifications
You must be signed in to change notification settings - Fork 1k
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
key vs endkey #3977
Comments
@ronag thanks for your report.
However, we do have "keys" which returns an error as you mentioned:
Perhaps |
@nickva What is the predence here though? It seems setting both key and endkey has different result that just setting key. Or does the order of the parameters matter? |
@ronag The precedence is in the order the parameters are specified. For example:
Will set endkey to
I can't think of any useful cases for this, but it has been like that for many years. It probably should be fixed to work like I marked the issue as an enhancement. It could be picked up by a beginner contributor as it doesn't seem particularly difficult to implement. But, it might involve some discussion on the dev ML since it's a compatibility issue. |
Hi @ronag, I would say that your example is working like expected, but you are right it seems a little bit confusing and needs an optimization in the future. So you would also get |
This answered my confusion. |
Does the |
@abarbosa-godaddy yeah, that's the idea of the tag. To do some validation that some parameters are mutually exclusive. |
I believe that if
key
is provided, thenendkey
should be ignored? The docs seem to be unclear on this. However, the behavior I get is the opposite.Looks like a bug?
couchdb:3.1.1
The text was updated successfully, but these errors were encountered: