99designs / 99designs/gqlgen

It doesn't work when input argument is null

Open
#2,343 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.8k
Forks
1.3k
Avg merge
2d 36m
Merged PRs (30d)
26

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.