batch_loader v0.1.0-beta.2 BatchLoader.Absinthe.Middleware View Source

Absinthe Middleware which delays the resolution and then gets the result from CacheStore.

Link to this section Summary

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.

Link to this function

call(res, batch_loader, resolution \\ Absinthe.Resolution)

View Source