Skip to content

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

Description

@youjinjoy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions