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

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

Link to this function

concat(keys, separator \\ "")

View Source
@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], " ")