harmboschloo/graphql-to-elm/1.0.0

GraphQL.Errors

Types and decoder for the errors field in the GraphQL response. See http://spec.graphql.org/June2018/#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