View Source AbsinthePlugCache.Plug.Parser (absinthe_plug_cache v1.5.8-1)
Extracts the GraphQL request body.
For use with Plug.Parsers
, as in the example below.
examples
Examples
Should be used with Plug.Parsers
, before AbsinthePlugCache.Plug
:
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json, AbsinthePlugCache.Plug.Parser],
pass: ["*/*"],
json_decoder: Jason
plug AbsinthePlugCache.Plug,
schema: MyAppWeb.Schema