Skip to content

Filtering for null values #23

@tinawu0603

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?

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