tartiflette-aiohttp v1.2.0 Release Notes
Release Date: 2020-01-29 // about 4 years ago-
[1.2.0] - 2020-01-29
➕ Added
Possibility to set header to the response directly from the resolver using
set_response_headers
method.from tartiflette_aiohttp import set_response_headers@Resolver("Query.X")async def resolver_x(parent_result, args, ctx, info): # do thingsset_response_headers({"Header": "Value", "AnotherHeader": "AnotherValue"}) return result
Note that this feature uses ContextVar and will only works for python 3.7.1 and later.
🔄 Changed
- ⚡️ pytest updated to 5.3.4
- ⚡️ pylint updated to 2.4.4