Packages

A resource declaration and interaction library. Built with pluggable data layers, and designed to be used by multiple front ends.

Retired package: Renamed - renamed to ash

Current section

Files

Jump to
ash_core lib ash resource actions update.ex
Raw

lib/ash/resource/actions/update.ex

defmodule Ash.Resource.Actions.Update do
@moduledoc "Represents a update action on a resource."
defstruct [:name, :primary?, type: :update]
@type t :: %__MODULE__{
type: :update,
name: atom,
primary?: boolean
}
@opt_schema [
name: [
type: :atom,
doc: "The name of the action"
],
primary?: [
type: :boolean,
default: false,
doc: "Whether or not this action should be used when no action is specified by the caller."
]
]
@doc false
def opt_schema, do: @opt_schema
end