maple v0.1.2 Maple.Client View Source
Implements an adapter to resolve the GraphQL mutations and queries against a
remote server using the Tesla HTTP client. Ideally, you could write your own
adapter as long as it conforms to the Maple.Behaviours.Adapter
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