View Source Ash.Resource.ManualDestroy behaviour (ash v2.4.18)

A module to implement manual destroy 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

destroy( changeset, opts, context )

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