antl_utils v0.4.1 AntlUtils.Absinthe.Plug
Documentation for AntlAbsinthe.Plug
Link to this section Summary
Functions
Assigns multiple context keys and values in the connection.
Link to this section Functions
Link to this function
put_context(conn, keywords)
Specs
put_context(Plug.Conn.t(), Keyword.t()) :: Plug.Conn.t()
Assigns multiple context keys and values in the connection.
Examples
iex> conn.private.absinthe.context[:my_plug_hello]
nil
iex> conn = put_context(conn, my_plug_hello: :world)
iex> conn.private.absinthe.context[:my_plug_hello]
:world