graphql-go / graphql-go/graphql

GraphQL does not report parsing errors

Open
#597 2 comments 0 reactions 0 assignees View on GitHub
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

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.