Skip to content

Fix schema execute context parameter#12

Merged
ewhauser merged 2 commits into
graphql-python:masterfrom
jimshepherd:master
Nov 28, 2018
Merged

Fix schema execute context parameter#12
ewhauser merged 2 commits into
graphql-python:masterfrom
jimshepherd:master

Conversation

@jimshepherd

@jimshepherd jimshepherd commented Nov 28, 2018

Copy link
Copy Markdown
Contributor

Fix that allows user to provide custom context value by overriding TornadoGraphQLHandler.context property.

Example:

class MyTornadoGraphQLHandler(TornadoGraphQLHandler):

    @property
    def context(self):
        return {'my_value': 'test}

@ewhauser ewhauser merged commit f32d223 into graphql-python:master Nov 28, 2018
@dwsutherland

Copy link
Copy Markdown

Massive help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants