absinthe v1.5.0-alpha.1 Absinthe.Middleware.MapGet View Source
This is the default middleware. It assumes the the object it receives is a map
and uses Map.get/2
to get the value for this field. If this field is already
marked as resolved, then this middleware does not touch it.
If you want to replace this middleware you should use
Absinthe.Schema.replace_default/4
Link to this section Summary
Functions
This is the main middleware callback
Link to this section Functions
This is the main middleware callback.
It receives an %Absinthe.Resolution{}
struct and it needs to return an
%Absinthe.Resolution{}
struct. The second argument will be whatever value
was passed to the middleware
call that setup the middleware.
Callback implementation for Absinthe.Middleware.call/2
.