riptide v0.2.79 Riptide.Interceptor behaviour

Link to this section Summary

Link to this section Functions

Link to this function

logging_disable()

Link to this function

logging_enable()

Link to this function

mutation_after(mutation, state)

Link to this function

mutation_after(mutation, state, interceptors)

Link to this function

mutation_before(mutation, state)

Link to this function

mutation_before(mutation, state, interceptors)

Link to this function

mutation_effect(mutation, state)

Link to this function

mutation_effect(mutation, state, interceptors)

Link to this function

query_before(query, state)

Link to this function

query_before(query, state, interceptors)

Link to this function

query_resolve(query, state)

Link to this function

query_resolve(query, state, interceptors)

Link to this section Callbacks

Link to this callback

mutation_after(path, layer, mut, state)

mutation_after(
  path :: [String.t()],
  layer :: Riptide.Mutation.t(),
  mut :: Riptide.Mutation.t(),
  state :: String.t()
) :: :ok
Link to this callback

mutation_before(path, layer, mut, state)

mutation_before(
  path :: [String.t()],
  layer :: Riptide.Mutation.t(),
  mut :: Riptide.Mutation.t(),
  state :: String.t()
) :: :ok | {:error, term()} | {:combine, Riptide.Mutation.t()}
Link to this callback

mutation_effect(path, layer, mut, state)

mutation_effect(
  path :: [String.t()],
  layer :: Riptide.Mutation.t(),
  mut :: Riptide.Mutation.t(),
  state :: String.t()
) :: :ok | {atom(), atom(), [String.t()]} | {atom(), [String.t()]}
Link to this callback

query_before(path, opts, state)

query_before(path :: [String.t()], opts :: map(), state :: any()) ::
  {:ok, any()} | {:error, term()} | nil
Link to this callback

query_resolve(path, opts, state)

query_resolve(path :: [String.t()], opts :: map(), state :: any()) ::
  {:ok, any()} | {:error, term()} | nil