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

Filtering on enum fields returns all results #201

Open
katylava opened this issue Nov 27, 2023 · 1 comment
Open

Filtering on enum fields returns all results #201

katylava opened this issue Nov 27, 2023 · 1 comment

Comments

@katylava
Copy link

I recently upgraded from 0.4.9 to 1.0.0, since we are upgrading our application to Django 4.2. Suddenly my tests for filters that happen to be on enum fields, which assert the query results is the expected result, are failing. The query result is including all results and not doing any filtering.

I can get around this by casting the fields to a string and then adding a resolver to uppercase the string, but then we lose the graphql features associated with enums.

@katylava
Copy link
Author

Actually I just realized this workaround could break downstream clients if they are using enums for these filters in the query. So yeah, I don't actually have a workaround.

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

No branches or pull requests

1 participant