intuit / intuit/graphql-filter-java

Filtering for null values

オープン
#23 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
73
フォーク
33
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
graphql, java
領域
api, backend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。