Can we disable unknown field validation error GRAPHQL_VALIDATION_FAILED?
Open
- Dominant language
- Go
- Stars
- 10.8k
- Forks
- 1.3k
- Avg merge
- 2d 36m
- Merged PRs (30d)
- 26
Description
### What happened?
We are migrating from graph-gophers to gqlgen. It is the end of the migration now, but we are blocked by seeing such errors often. The graph-gophers library will ignore unknown fields. Our frontend sometimes sends unknown fields still and there are just too many fields to remove. Is there a way to disable this error?
```json
{
"message": "unknown field",
"path": ["blabla"],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED"
}
}
```
### What did you expect?
I would like a way to config gqlgen and disable this error.
### versions
- `go run github.com/99designs/gqlgen version`? v0.17.20
- `go version`? 1.19.1
Contributor guide
Assessment
This issue has not been assessed yet.