View Source Ash.Expr (ash v3.0.2)

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

A template helper for using query context in filter templates

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.

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

Types

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

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.

Link to this function

eval(expression, opts \\ [])

View Source

Evaluate an expression. This function only works if you have no references, or if you provide the record option.

Link to this function

eval!(expression, opts \\ [])

View Source

Evaluate an expression. See eval/2 for more.

@spec expr(Macro.t()) :: t()
@spec expr?(term()) :: boolean()

Returns true if the value is or contains an expression

Link to this macro

or_where(left, right)

View Source (macro)
@spec or_where(Macro.t(), Macro.t()) :: t()

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

Link to this function

template_references?(list, pred)

View Source

Whether or not a given template contains an actor reference

Link to this function

template_references_argument?(template)

View Source
Link to this function

template_references_context?(template)

View Source
Link to this macro

where(left, right)

View Source (macro)
@spec where(Macro.t(), Macro.t()) :: t()