absinthe_plug v1.4.2 Absinthe.Plug.Parser
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: Poison
plug Absinthe.Plug,
schema: MyAppWeb.Schema