EctoMiddleware.Resolution (ecto_middleware v1.0.0) View Source
Struct for holding middleware resolution data
Link to this section Summary
Functions
Executes all of the configured "after" middleware for the given resolution.
Executes all of the configured "before" middleware for the given resolution.
Link to this section Types
Link to this section Functions
Specs
Executes all of the configured "after" middleware for the given resolution.
This function is intended to be used by the EctoMiddleware
module, but can also be
used directly if you need to execute the "after" middleware for testing purposes.
Provide a resolution
struct as the argument with action
, args
, and entity
fields,
alongside the repo
module that the middleware is being executed for, alongside the
expected return value of the given Ecto.Repo
callback.
Specs
Executes all of the configured "before" middleware for the given resolution.
This function is intended to be used by the EctoMiddleware
module, but can also be
used directly if you need to execute the "before" middleware for testing purposes.
Provide a resolution
struct as the argument with action
, args
, and entity
fields,
alongside the repo
module that the middleware is being executed for.