View Source Ash.Resource.ManualUpdate behaviour (ash v2.19.3)
A module to implement manual update actions.
Summary
Types
Callbacks
@callback bulk_update( 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 update( changeset :: Ash.Changeset.t(), opts :: Keyword.t(), context :: context() ) :: {:ok, Ash.Resource.record()} | {:ok, Ash.Resource.record(), %{notifications: [Ash.Notifier.Notification.t()]}} | {:error, term()}