View Source Ash.Resource.Calculation (ash v2.9.21)

Represents a named calculation on a resource

Link to this section Summary

Link to this section Types

@type ref() :: {module(), Keyword.t()} | module()
@type t() :: %Ash.Resource.Calculation{
  allow_nil?: boolean(),
  arguments: [any()],
  calculation: {:ok, {atom(), any()}} | {:error, String.t()},
  constraints: term(),
  description: String.t() | nil,
  filterable?: term(),
  load: term(),
  name: atom(),
  private?: boolean(),
  select: term(),
  type: term()

Link to this section Functions