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

Boolean values in eq/ne operators are incorrectly filtered out #33

Open
youjinjoy opened this issue Feb 12, 2025 · 0 comments
Open

Boolean values in eq/ne operators are incorrectly filtered out #33

youjinjoy opened this issue Feb 12, 2025 · 0 comments

Comments

@youjinjoy
Copy link

youjinjoy commented Feb 12, 2025

Description

When using the eq or ne operators with a false value in GraphQL filters, the filter is ignored.

db data (Only id and confirm fields are relevant here)
Image

eq: true eq: false
Image Image

(Same with ne retrieving all data when value is false.)

Modifying the condition in function extractFiltersColumn resolves the problem.

before after
Image Image
Image

Environment

drizzle-graphql version: 0.8.5
GraphQL version: 16.9.0
Database: PostgreSQL

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