Ash.Calculation behaviour (ash v1.37.0) View Source

The behaviour for a calculation module

Link to this section Summary

Link to this section Callbacks

Link to this callback

calculate(list, arg2, map)

View Source

Specs

calculate([Ash.Resource.record()], Keyword.t(), map()) ::
  {:ok, [term()]} | [term()] | {:error, term()}

Specs

describe(Keyword.t()) :: String.t()

Specs

init(Keyword.t()) :: {:ok, Keyword.t()} | {:error, term()}

Specs

type() :: Ash.Type.t()