CommonGraphQLClient.CallerBehaviour behaviour (common_graphql_client v0.6.3) View Source

This module defines the behavior a caller must implement.

Link to this section Summary

Link to this section Callbacks

Link to this callback

post(client, query, variables, opts)

View Source

Specs

post(
  client :: any(),
  query :: String.t(),
  variables :: keyword(),
  opts :: keyword()
) :: any()
Link to this callback

subscribe(client, subscription_name, callback, query, variables)

View Source

Specs

subscribe(
  client :: any(),
  subscription_name :: atom(),
  callback :: (... -> any()),
  query :: String.t(),
  variables :: keyword()
) :: any()
Link to this callback

supervisor(client, opts)

View Source

Specs

supervisor(client :: any(), opts :: Keyword.t()) ::
  {atom(), any()} | no_return()