NOTE: the latest version is 5.0.0
This module provides helpers to directly deal with HTTP with GraphQL.
Send a GraphQL request directly through an HTTP post, directly decoding the data field in the response.
data
sendMyAwesomeRequest : (Result Http.Error a -> msg) -> Decoder a -> Cmd msg sendMyAwesomeRequest msg decoder = GraphQl.query myAwesomeRequest |> GraphQl.Http.send "/example_endpoint" msg decoder
Send a GraphQL request directly through an HTTP post, directly decoding the
datafield in the response.