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

Bug: ALL filter not working inside OR #749

Closed
maheshrajamani opened this issue Dec 21, 2023 · 0 comments · Fixed by #757
Closed

Bug: ALL filter not working inside OR #749

maheshrajamani opened this issue Dec 21, 2023 · 0 comments · Fixed by #757
Assignees

Comments

@maheshrajamani
Copy link
Contributor

ALL filter needs to AND all of the array elements given in it. This is directly added as multiple condition in FilterableResolver. Because of this if ALL operator is used inside a OR different condition of ALL are concatenated with OR. AllFilter needs to be changed similar to NIN operator.

{ "find": { "filter" : { "$or": [ { "address": "testAddress" }, { "height": { "$all" : [1,2]} } ] } } }

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 a pull request may close this issue.

2 participants