`` import AshPhoenix.FormData.Helpers @doc "Calls the corresponding
`` import AshPhoenix.FormData.Helpers @doc "Calls the corresponding
for*` function depending on the action type" def for_action(resource_or_data, action, opts) do {resource, data} = case resource_or_data do module when is_atom(resource_or_data) -> {module, module.struct()} %resource{} = data -> {resource, data} end
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.