Nil `Operation` field in the Operation Context
Ouverte
- Langage dominant
- Go
- Étoiles
- 10.8k
- Forks
- 1.3k
- Merge moyen
- 2 j 36 min
- PR mergées (30 j)
- 26
Description
### What happened?
I am using the `oc := graphql.GetOperationContext(ctx)` in a middleware in `AroundResponses` function. The `oc.Operation` field is nil when there are some validation errors.
Error details:
- Rule: `NoUnusedFragments`
- Extensions.Code: `GRAPHQL_VALIDATION_FAILED`
- Message: `Fragment \"...\" is never used.`
### What did you expect?
I expect the `Operation` filed to not be nil.
### Minimal graphql.schema and models to reproduce
### versions
- `go run github.com/99designs/gqlgen version`? gqlgen v0.17.24
- `go version`? Go 1.19
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.