intuit / intuit/graphql-filter-java
Filtering for null values
- Langage dominant
- Java
- Étoiles
- 73
- Forks
- 33
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- graphql, java
- Domaine
- api, backend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100