View Source Ash.Resource.ManualUpdate behaviour (ash v2.4.12)

A module to implement manual update actions.

Link to this section Summary

Link to this section Types

@type context() :: %{actor: term(), tenant: term(), authorize?: term(), api: module()}

Link to this section Callbacks

Link to this callback

update( changeset, opts, context )

View Source
@callback update(
  changeset :: Ash.Changeset.t(),
  opts :: Keyword.t(),
  context :: context()
) :: {:ok, Ash.Resource.record()} | {:error, term()}