View Source Ash.Query.Calculation (ash v3.4.41)
Represents a calculated attribute requested on a query
Summary
Functions
Creates a new query calculation from a resource calculation.
Creates a new query calculation from a resource calculation, raising any errors.
Creates a new query calculation.
Types
Functions
Creates a new query calculation from a resource calculation.
Options
Creates a new query calculation from a resource calculation, raising any errors.
See from_resource_calculation/3
for more.
Creates a new query calculation.
Options
:arguments
(map/0
) - Arguments to pass to the calculation The default value is%{}
.:async?
(boolean/0
) - Whether or not this calculation should be run asynchronously The default value isfalse
.:filterable?
(boolean/0
) - Whether or not this calculation can be filtered on The default value istrue
.:sortable?
(boolean/0
) - Whether or not this calculation can be sorted on The default value istrue
.:sensitive?
(boolean/0
) - Whether or not references to this calculation will be considered sensitive The default value isfalse
.:load
(term/0
) - Loads that are required for the calculation.:source_context
(map/0
) - Context from the source query or changeset. The default value is%{}
.