plug_graphql v0.2.0 Plug.Parsers.GRAPHQL

Parses a GraphQL request body when the content-type is set to application/graphql.

Mount it as a custom Plug.Parser by passing the atom :graphql to Plug.Parsers:

plug Plug.Parsers, parsers: [:graphql], pass: ["*/*"]

An empty request body is parsed as an empty map.

Summary

Functions

Callback implementation for c:Plug.Parsers.parse/5

Functions

parse(conn, arg2, arg3, headers, opts)

Callback implementation for c:Plug.Parsers.parse/5.