View Source Ash.Resource.Calculation.Builtins (ash v3.4.46)

Built in calculations that are automatically imported in the calculations section

Summary

Functions

An example concatenation calculation, that accepts the delimiter as an argument

Functions

concat(keys, separator \\ "")

@spec concat(keys :: [atom()], separator :: String.t()) ::
  Ash.Resource.Calculation.ref()

An example concatenation calculation, that accepts the delimiter as an argument

Examples

calculate :full_name, :string, concat([:first_name, :last_name], " ")