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

[MongoDB] Scalar list filter isEmpty is broken #3133

Closed
Weakky opened this issue Aug 17, 2022 · 0 comments · Fixed by #3088
Closed

[MongoDB] Scalar list filter isEmpty is broken #3133

Weakky opened this issue Aug 17, 2022 · 0 comments · Fixed by #3088
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/client Issue for team Client. tech/engines Issue for tech Engines. topic: mongodb

Comments

@Weakky
Copy link
Member

Weakky commented Aug 17, 2022

Overview

Consider an empty scalar list. Try the following filter:

{ NOT: { isEmpty: false } }

This currently returns false for an empty list. However, it should return true.

{ isEmpty: false }

Returns false for an empty list, but it's negated. So !false == true

@Weakky Weakky added bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. tech/engines Issue for tech Engines. team/client Issue for team Client. topic: mongodb labels Aug 17, 2022
@Weakky Weakky changed the title [MongoDB] Scalar list filte isEmpty is broken [MongoDB] Scalar list filter isEmpty is broken Aug 17, 2022
Weakky added a commit that referenced this issue Aug 17, 2022
Weakky added a commit that referenced this issue Aug 17, 2022
Weakky added a commit that referenced this issue Aug 18, 2022
Weakky added a commit that referenced this issue Aug 18, 2022
Weakky added a commit that referenced this issue Aug 18, 2022
@Weakky Weakky self-assigned this Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/client Issue for team Client. tech/engines Issue for tech Engines. topic: mongodb
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant