elm-graphql icon indicating copy to clipboard operation
elm-graphql copied to clipboard

Add support for the "extensions" key on errors

Open mcasper opened this issue 3 years ago • 0 comments

The latest (published) graphql spec standardized an extensions key in the response format of graphql errors for optionally sending additional information about the error. The value of the extensions key is required to be a map, but beyond that there is no additional specification.

https://spec.graphql.org/June2018/#sec-Errors

This PR adds support for graphql error extensions to the Graphql.Http.GraphqlError.GraphqlError record in the form of a Maybe (Dict String Json.Decode.Value) field, allowing users to handle the values however they please.

mcasper avatar May 11 '21 23:05 mcasper