99designs / 99designs/gqlgen

Can we disable unknown field validation error GRAPHQL_VALIDATION_FAILED?

Open
#2,412 0 comments 3 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?
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

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.