View Source Grax.Id.Schema.Extension behaviour (Grax v0.5.0)

Summary

Types

Callbacks

Link to this callback

call(extension, t, variables, opts)

View Source
@callback call(
  extension :: t(),
  Grax.Id.Schema.t(),
  variables :: map(),
  opts :: keyword()
) ::
  {:ok, Grax.Id.Schema.t()} | {:error, any()}
@callback init(Grax.Id.Schema.t(), opts :: keyword()) :: Grax.Id.Schema.t()

Functions

Link to this function

extension_opt(extension, opts)

View Source
Link to this function

install(id_schema, extensions)

View Source