Ash.Query.Function behaviour (ash v1.46.8) View Source

A function is a predicate with an arguments list.

For more information on being a predicate, see Ash.Filter.Predicate. Most of the complexities are there. A function must meet both behaviours.

Link to this section Summary

Functions

Attaches the appropiate suffix to refer to an ordinal number, e.g 1 -> "1st"

Callbacks

The number and types of arguments supported.

Link to this section Types

Link to this section Functions

Attaches the appropiate suffix to refer to an ordinal number, e.g 1 -> "1st"

Link to this section Callbacks

Specs

args() :: [arg()]

The number and types of arguments supported.

Specs

evaluate(func :: map()) :: :unknown | {:known, term()}

Specs

new([term()]) :: {:ok, term()}