tartiflette-aiohttp v1.1.0 Release Notes
Release Date: 2019-10-03 // over 4 years ago-
[1.1.0] -- 2019-10-02
➕ Added
ISSUE-55 - Add
a new optionalcontext_factory
parameter to theregister_graphql_handlers
function. This parameter can take a coroutine function which will be called on
each request with the following signature:async def context_factory( context: Dict[str, Any], req: "aiohttp.web.Request") -> Dict[str, Any]: """ Generates a new context. :param context: the value filled in through the
executor_context
parameter :param req: the incoming aiohttp request instance :type context: Dict[str, Any] :type req: aiohttp.web.Request :return: the context for the incoming request :rtype: Dict[str, Any] """
The aim of this function will be to returns the context which will be forwarded
to the Tartiflette engine on theexecute
orsubscribe
method.