AshScenario.Dsl.Create (ash_scenario v0.6.0)

View Source

Configure how records for a given Ash resource module are created.

  • If function is provided, it is used with signature (attributes, opts).
  • Otherwise, uses the specified action (defaults to :create).

Summary

Types

t()

@type t() :: %AshScenario.Dsl.Create{
  __identifier__: atom() | nil,
  __spark_metadata__: term(),
  action: atom() | nil,
  function: ({map(), keyword()} -> {:ok, any()} | {:error, any()}) | mfa() | nil
}