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