ash v1.24.2 Ash.Calculation behaviour 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.record()], Keyword.t(), map()) ::
  {:ok, [term()]} | [term()] | {:error, Ash.error()}

Specs

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

Specs

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

Specs

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