graphql-go / graphql-go/graphql

Way to distinguish graphql's errors from resolvers' internal errors

Open
#312 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

`graphql.Result.Errors` should give abiltiy to distinguish graphql's errors from resolvers' internal errors. We need this feature to be able to submit metrics about graphql errors to out monitor solution.

By `graphql error` i mean errors connected to bad syntax, parsing and resolving which are not caused by resolvers implementation. Such errors which are not originated in resolvers internals.

I think this feature request somehow related to #109.

In [this](https://github.com/graph-gophers/graphql-go) graphql library both of this problem solved by forwarding original errors to handler level: i can type assert them, extract error codes, and modify errors structures returned by the server.

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.