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

Link to this section Callbacks

Link to this callback

execute_query( query, variables, options )

View Source

Specs

execute_query(
  query :: GraphQL.Query.t(),
  variables :: map(),
  options :: map()
) :: GraphQL.Response.t()

Callback spec for backend implementation

Link to this section Functions

Link to this function

execute(query, variables, options \\ %{})

View Source

Specs

execute(GraphQL.Query.t(), map(), map()) :: GraphQL.Response.t()

Executes the given query, with the given variables and options.