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] Having filters don't work without selection #2768

Closed
Tracked by #8788
Weakky opened this issue Mar 16, 2022 · 2 comments · Fixed by #2812
Closed
Tracked by #8788

[MongoDB] Having filters don't work without selection #2768

Weakky opened this issue Mar 16, 2022 · 2 comments · Fixed by #2812
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. team/client Issue for team Client. tech/engines Issue for tech Engines. topic: mongodb
Milestone

Comments

@Weakky
Copy link
Member

Weakky commented Mar 16, 2022

Overview

The $group stage rendering is triggered by the query selection. Therefore, if there isn't a selection, the having filter tries to match against aggregated variables that don't exist.

Reproduction

query {
  groupByTestModel(by: [id], having: { some_field: { _max: { gt: 2 } } }) {
    id
  }
}
@Weakky Weakky added bug/2-confirmed Bug has been reproduced and confirmed. topic: mongodb team/client Issue for team Client. tech/engines Issue for tech Engines. labels Mar 16, 2022
@matthewmueller
Copy link
Contributor

Is this something we want to get fixed before GA?

@Weakky
Copy link
Member Author

Weakky commented Mar 25, 2022

Yes, I added it to the epic

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. 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.

3 participants