99designs / 99designs/gqlgen

It doesn't work when input argument is null

Đang mở
#2,343 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
10.8k
Fork
1.3k
Merge trung bình
2 ngày 36 phút
Pull request đã merge (30 ngày)
26

Mô tả

### What happened?

**The input schema**

```
extend type Query {
apiResponse(id: ID!,filter:MakerFilterInput): Any
}
```

** when run the query**

query httpresp {
apiResponse(id:"xxxx") // The arg "filter" is null, get the error: but if the filter is not null.it works well
}

**error**:

```

{
"errors": [
{
"message": "internal system error",
"path": [
"apiResponse"
]
}
],
"data": {
"apiResponse": null
}
}
```

### What did you expect?

### Minimal graphql.schema and models to reproduce

### versions
- `go run github.com/99designs/gqlgen version`? v0.17.14
- `go version`? 1.18

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

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

Đánh giá

Issue này chưa được đánh giá.

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.