Alternera.Resource.Calculations.ReferenceKey (alternera_resource_sdk v0.9.0)

Copy Markdown View Source

The lookup key of the record a belongs_to names (EUR for an exchange rate's base_currency), the calculation <relationship>_<key> that Transformers.AddReferenceKeys adds. An expression, so the database answers it in the same query and the API can filter and sort on it.

Summary

Functions

describe(opts)

Callback implementation for Ash.Resource.Calculation.describe/1.

has_calculate?()

has_expression?()

Callback implementation for Ash.Resource.Calculation.has_expression?/0.

load(query, opts, context)

Callback implementation for Ash.Resource.Calculation.load/3.

strict_loads?()

Callback implementation for Ash.Resource.Calculation.strict_loads?/0.