Skip to content

1.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Jan 16:03
· 67 commits to master since this release
1e53380

[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 things
    set_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