maple v0.1.1 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 executes it against a remove server

Takes a GraphQL query string 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) View Source
mutate(String.t) :: %Maple.Response{body: term, status: term}

Takes a GraphQL mutation string and executes it against a remove server

Link to this function query(string) View Source
query(String.t) :: %Maple.Response{body: term, status: term}

Takes a GraphQL query string and executes it against a remove server

Link to this function schema() View Source
schema() :: map

Returns the introspection query of a remote GraphQL server