Ash.Resource.Preparation.Builtins.set_context

You're seeing just the function set_context, go back to Ash.Resource.Preparation.Builtins module for more information.

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}