plug_graphql v0.2.0 GraphQL.Plug.Endpoint

This is the core plug for mounting a GraphQL server.

You can build your own pipeline by mounting the GraphQL.Plug.Endpoint plug directly.

forward "/graphql", GraphQL.Plug.Endpoint, schema: {MyApp.Schema, :schema}

You may want to look at how GraphQL.Plug configures its pipeline. Specifically note how Plug.Parsers are configured, as this is required for pre-parsing the various POST bodies depending on content-type.

Summary

Functions

Callback implementation for c:Plug.call/2

Callback implementation for c:Plug.init/1

Functions

call(conn, opts)

Callback implementation for c:Plug.call/2.

extract_arguments(conn, opts)
handle_call(conn, args)
handle_error(conn, message)
init(opts)

Callback implementation for c:Plug.init/1.