machinebox / graphql

Simple low-level GraphQL HTTP client for Go
https://blog.machinebox.io/a-graphql-client-library-for-go-5bffd0455878
Apache License 2.0
933 stars 217 forks source link

Support returning standard graphQL errors instead of just a message #52

Closed secretworry closed 4 years ago

secretworry commented 4 years ago

The standard error has been defined here, but the lib just interpreted the message part.

I defined a new error struct against the standard( GraphError) and ensured it's compatible with the original graphErr.

Besides, I added module definition for this project to support using it as a go module.

secretworry commented 4 years ago

Closed in favor of https://github.com/machinebox/graphql/pull/48