common_graphql_client v0.5.0 CommonGraphQLClient.CallerBehaviour behaviour 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
post(
  client :: any(),
  query :: String.t(),
  variables :: keyword(),
  opts :: keyword()
) :: any()
Link to this callback

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

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

supervisor(client, opts)

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