ash v1.34.9 Ash.Resource.Preparation behaviour View Source
The behaviour for an action-specific query preparation.
To implement one, simply implement the behaviour.
init/1 is defined automatically
use Ash.Resource.Preparation, but can be implemented if you want to validate/transform any
options passed to the module.
The main function is
prepare/3. It takes the changeset, any options that were provided
when this change was configured on a resource, and the context, which currently only has
To access any query arguments from within a preparation, make sure you are using
as the argument keys may be strings or atoms.