intuit / intuit/graphql-filter-java

Filtering for null values

Đang mở
#23 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
73
Fork
33
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
graphql, java
Lĩnh vực
api, backend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.