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

x/mango: Fix evaluation of $exists: false always failing #1044

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

skaggmannen
Copy link
Contributor

This PR fixes the evaluation of $exists: false by making fieldNode.Match() always pass the value to the condition, even if it is not found in the map.

It also makes it possible to do subfield lookups using dot notation (e.g. foo.bar.baz) as mentioned in the CouchDB documentation.

This PR fixes #1043.

@flimzy
Copy link
Member

flimzy commented Sep 11, 2024

Thanks for submitting a PR! I see one small improvement that needs to be made, but I'll do that in a follow-up PR, as I have the relevant code already elsewhere in the repo. I'll just move it into place, then cut a new release.

@flimzy flimzy merged commit 4c26937 into go-kivik:master Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

x/mango: Evaluation of $exists: false always fails
2 participants