graphqexl v0.1.0-alpha-rc.24 Graphqexl.Server.Plug

Server Plug to handle parsing and executing GraphQL queries, which can be given as application/json or application/graphql

TODO: Error handling/rendering

Link to this section Summary

Functions

Call callback invoked when a request matching a route including this Plug.t/0 is handled.

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

Link to this section Types

Link to this type

json()

json() :: Map.t()

Link to this section Functions

Link to this function

call(conn, opts)

(since 0.1.0)
call(Plug.Conn.t(), list()) :: Plug.Conn.t()

Call callback invoked when a request matching a route including this Plug.t/0 is handled.

Returns: Plug.Conn.t/0

Link to this function

init(options)

(since 0.1.0)
init(list()) :: list()

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

Returns: t:list(term.t/0)