Skip to content

Filtering for null values #23

Description

@tinawu0603

Hello,

I am trying to write a GraphQL filter to filter for nulls.

{
  events(
    filter: {
     bookingId: { eq: null }
    }
  ) {
    id
    booking {
      id
    }
  }
}

But when I'm generating the filter expression, the SQL expression looks like "WHERE bookingId = 'null'" instead of bookingId = null without the single quotes.

Can this be fixed or can you point to where the toString is coming from?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions