View Source Ash.Resource.ManualDestroy behaviour (ash v2.19.3)
A module to implement manual destroy actions.
Note that in the returns of these functions you must return the destroyed record or records.
Summary
Types
Callbacks
@callback bulk_destroy( changesets :: Enumerable.t(Ash.Changeset.t()), opts :: Keyword.t(), context :: context() ) :: [ ok: Ash.Resource.record(), error: Ash.Error.t(), notifications: [Ash.Notifier.Notification.t()] ]
@callback destroy( changeset :: Ash.Changeset.t(), opts :: Keyword.t(), context :: context() ) :: {:ok, Ash.Resource.record()} | {:ok, Ash.Resource.record(), [Ash.Notifier.Notification.t()]} | {:error, term()}