maple v0.3.0 Maple.Clients.Http View Source
Implements an adapter to resolve the GraphQL mutations and queries against a remote server using the Tesla HTTP client.
You could write your own adapter as long as it conforms to the
Maple.Behaviours.HttpAdapter
behaviour.
Link to this section Summary
Functions
Takes a GraphQL mutation string and a map of parameters and executes it against a remove server
Takes a GraphQL query string and a map of parameters and executes it against a remove server
Returns the introspection query of a remote GraphQL server
Link to this section Functions
Link to this function
mutate(string, params)
View Source
mutate(String.t, map) :: %Maple.Response{body: term, status: term}
Takes a GraphQL mutation string and a map of parameters and executes it against a remove server
Link to this function
query(string, params)
View Source
query(String.t, map) :: %Maple.Response{body: term, status: term}
Takes a GraphQL query string and a map of parameters and executes it against a remove server
Returns the introspection query of a remote GraphQL server