harmboschloo/graphql-to-elm-package/1.0.1

GraphQL.Errors

Types and decoder for the errors field in the GraphQL response. See http://facebook.github.io/graphql/draft/#sec-Errors.

type alias Errors =
List Error
type alias Error =
{ message : String
, locations : Maybe (List Location)
, path : Maybe (List PathSegment)
}
type alias Location =
{ line : Int
, column : Int
}
= FieldName String
| ListIndex Int
decoder : Decoder Errors
errorDecoder : Decoder Error
locationDecoder : Decoder Location