Ash.Resource.Actions.Implementation behaviour (ash v3.5.9)

View Source

An implementation of a generic action.

Example

defmodule YourModule do
  use Ash.Resource.Actions.Implementation

  def run(input, opts, context) do
    {:ok, "Hello"}
  end
end

Summary

Callbacks

run(t, opts, t)

@callback run(
  Ash.ActionInput.t(),
  opts :: Keyword.t(),
  Ash.Resource.Actions.Implementation.Context.t()
) ::
  :ok
  | {:ok, term()}
  | {:ok, [Ash.Notifier.Notification.t()]}
  | {:error, term()}