GraphQL.Client behaviour (GraphQL Client v0.2.1) View Source
Facade client for GraphQL requests
The real backend must implement the execute/4 callback and must be configured
by the :therealreal, GraphQL.Client, :backend
application
config.
Link to this section Summary
Callbacks
Callback spec for backend implementation
Functions
Executes the given query, with the given variables and options.
Link to this section Types
Specs
query() :: GraphQL.Query.t() | {String.t(), reference()} | String.t()
Link to this section Callbacks
Specs
execute_query( query :: GraphQL.Query.t(), variables :: map(), options :: map() ) :: GraphQL.Response.t()
Callback spec for backend implementation
Link to this section Functions
Specs
execute(GraphQL.Query.t(), map(), map()) :: GraphQL.Response.t()
Executes the given query, with the given variables and options.