ash v1.24.1 Ash.Resource.Dsl.Create View Source

Link to this section Summary

Functions

Declares a create action. For calling this action, see the Ash.Api documentation.

Link to this section Functions

Link to this macro

create(name, opts \\ [])

View Source (macro)

Declares a create action. For calling this action, see the Ash.Api documentation.

Examples

create :register, primary?: true

Arguments

  • :name - The name of the action

Options

  • :accept - The list of attributes and relationships to accept. Defaults to all attributes on the resource

  • :primary? - Whether or not this action should be used when no action is specified by the caller. The default value is false.

  • :description - An optional description for the action