An easy-to-use GraphQL library.
Result Http.Error (Res a)
GraphQL response type spec.
{ message : String
, locations : Maybe (List Location)
, path : Maybe (List Path)
, extensions : Maybe (Dict String Json.Decode.Value)
}
GraphQL error type spec.
Path of the response field which experienced the error.
Type to expose several GraphQL response scenari.
{ data : Maybe (Root a)
, errors : Maybe (List Error)
}
GraphQL data type spec.
{ root : a }
Root data response.
run : { query : String, headers : List Http.Header, url : String, root : String, decoder : Json.Decode.Decoder a, variables : Maybe Json.Decode.Value, on : Response a -> msg } -> Platform.Cmd.Cmd msg
Run a GraphQL request.
segment : Response a -> QLRes a
Convert a raw Graph Response
to the more expressive type QLRes
.