Sucrose.Middleware.SimplePolicy (Sucrose v0.1.4)

This is a simple policy handler that takes a very simple approach to absinthe resolution handling The basis for all of the handlers is to have a common response type:

To use this policy you must return the common return handler. Sucrose.Common.handle_response/2

Link to this section Summary

Link to this section Functions

Link to this function

call(resolution, arg2)

Callback implementation for Absinthe.Middleware.call/2.

Link to this function

simple_resolution(resolution)

@spec simple_resolution(map()) :: %{
  child: :atom,
  parent: :atom,
  claim: any(),
  resolution: map()
}