graphqexl v0.1.0-alpha-rc.25 Graphqexl.Server.Plug.Schema

Plug that makes an Graphqexl.Schema.executable/1 available to further plugs/handlers, using the Graphqexl.Schema.Executable GenServer.

Link to this section Summary

Functions

Call callback invoked when a request matching a route including this Plug.t/0 is handled. Assigns a Graphqexl.Schema.t/0 to the active Plug.Conn.t/0's assigns struct under the :schema key by fetching the loaded Graphqexl.Schema.t/0 from the Graphqexl.Schema.Executable GenServer.

Init callback invoked when a request matching a route including this Plug.t/0 is being prepared for handled.

Link to this section Functions

Link to this function

call(conn, opts)

(since 0.1.0)
call(Plug.Conn.t(), [term()]) :: Plug.Conn.t()

Call callback invoked when a request matching a route including this Plug.t/0 is handled. Assigns a Graphqexl.Schema.t/0 to the active Plug.Conn.t/0's assigns struct under the :schema key by fetching the loaded Graphqexl.Schema.t/0 from the Graphqexl.Schema.Executable GenServer.

Returns: Plug.Conn.t/0

Link to this function

init(options)

(since 0.1.0)
init([term()]) :: [term()]

Init callback invoked when a request matching a route including this Plug.t/0 is being prepared for handled.

Returns: [t:term/0]