intuit / intuit/graphql-filter-java
Filtering for null values
- Dominant language
- Java
- Stars
- 73
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Research direction
Start by tracing how the GraphQL filter input for eq: null becomes a filter expression and then SQL, focusing on where the null value is converted to text. Done means the generated SQL no longer quotes the null value and the behavior is verified for this filter case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100