intuit / intuit/graphql-filter-java

Filtering for null values

Abierto
#23 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
73
Forks
33
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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?

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
graphql, java
Área
api, backend
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.