Tools to build Ash expressions
Summary
Functions
A template helper for using actor values in filter templates
A template helper for using action arguments in filter templates
A template helper for referring to the most recent atomic expression applied to an update field
Creates an expression calculation for use in sort and distinct statements.
A template helper for creating a reference
A template helper for using query context in filter templates
Determines the types for a given operator or function module and its arguments.
Evaluate an expression. This function only works if you have no references, or if you provide the record option.
Evaluate an expression. See eval/2 for more.
Creates an expression. See the Expressions guide for more.
Returns true if the value is or contains an expression
A template helper for creating a parent reference
A template helper for creating a reference
A template helper for creating a reference to a related path
Whether or not a given template contains an actor reference
A template helper for using the tenant in filter templates
Prepares a filter for comparison
Types
@type t() :: any()
Functions
A template helper for using actor values in filter templates
A template helper for using action arguments in filter templates
A template helper for referring to the most recent atomic expression applied to an update field
Creates an expression calculation for use in sort and distinct statements.
Examples
Ash.Query.sort(query, [
{calc(string_upcase(name), :asc},
{calc(count_nils([field1, field2]), type: :integer), :desc})
])
A template helper for creating a reference
A template helper for using query context in filter templates
An atom will get the value for a key, and a list will be accessed via get_in.
Determines the types for a given operator or function module and its arguments.
Given an operator or function module (e.g. Ash.Query.Operator.In), resolves the
concrete types of the arguments based on the module's declared type signatures and
any registered operator overloads. Returns {resolved_types, return_type} where
resolved_types is a list of {type, constraints} tuples (or nil for unresolvable
arguments) and return_type is the resolved return type.
This is the primary type resolution mechanism used by data layer expression compilers.
It performs actual type validation including coercion checks, unlike
Ash.Type.determine_types/2 which only resolves vague types (:same/:any).
Evaluate an expression. This function only works if you have no references, or if you provide the record option.
Evaluate an expression. See eval/2 for more.
Creates an expression. See the Expressions guide for more.
Returns true if the value is or contains an expression
A template helper for creating a parent reference
A template helper for creating a reference
A template helper for creating a reference to a related path
Whether or not a given template contains an actor reference
A template helper for using the tenant in filter templates
Prepares a filter for comparison