graphql-go / graphql-go/graphql
GraphQL does not report parsing errors
Open
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 845
- PR merge metrics
- No merged PRs in 30d
Description
I see this useless message reported in many situations: `Cannot query field "{some field}" on type "RootQuery".`
There's actual errors underneath that are not being reported. `FieldsOnCorrectTypeRule` is reporting graphql errors but none of these are surfaced to the caller.
`gqlerrors.FormattedError{Message:"Oracle fields must be an object with field names as keys or a function which return such an object."`
While these are server errors and not actionable by the client, they should at least be logged when encountered.
Contributor guide
Assessment
This issue has not been assessed yet.