ash v1.25.0 Ash.Resource.Dsl.Create.Arguments.Argument View Source

Link to this section Summary

Functions

Declares an argument on the action

Link to this section Functions

Link to this macro

argument(name, type, opts \\ [])

View Source (macro)

Declares an argument on the action

The type can be either a built in type (see Ash.Type) for more, or a module implementing the Ash.Type behaviour.

Examples

argument :password_confirmation, :string

Arguments

  • :type

  • :name

Options

  • :allow_nil? - The default value is true.

  • :constraints - The default value is [].