plug_graphql v0.2.0 GraphQL.Plug.GraphiQL

This is the GraphiQL plug for mounting a GraphQL server.

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

forward "/graphql", GraphQL.Plug.GraphiQL, 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.

init(opts)

Callback implementation for c:Plug.init/1.

use_graphiql?(conn, opts)