Glific v0.3.1 GlificWeb.Schema.Middleware.AddOrganization View Source
Implementing middleware functions to transform errors from Ecto Changeset into a format consumable and displayable to the API user. This version is specifically for mutations.
Link to this section Summary
Functions
This is the main middleware callback.
Link to this section Functions
Specs
call(Absinthe.Resolution.t(), term()) :: Absinthe.Resolution.t()
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.