Ash.Resource.Preparation.Builtins (ash v1.37.2) View Source
Builtin query preparations
Link to this section Summary
Functions
Merges the given query context. If an MFA is provided, it will be called with the query.
Link to this section Functions
Specs
set_context(map() | (Ash.Query.t() -> mfa())) :: {atom(), Keyword.t()}
Merges the given query context. If an MFA is provided, it will be called with the query.
The MFA should return {:ok, context_to_be_merged}
or {:error, term}