Grapher v0.6.0 Grapher.GraphQL.Response View Source
Conveniences for structuring the response form the server.
Link to this section Summary
Functions
Creates a Grapher.GraphQL.Response.t
struct from an HTTPoison.Response.t
struct
Link to this section Types
Link to this type
t()
View Source
t() :: %Grapher.GraphQL.Response{data: data(), errors: errors(), status_code: status_code(), transport_error: transport_error()}
Link to this section Functions
Link to this function
build(map)
View Source
build(HTTPoison.Response.t()) :: Grapher.GraphQL.Response.t()
Creates a Grapher.GraphQL.Response.t
struct from an HTTPoison.Response.t
struct.
Parameters
response
: An HTTPoison response