Skip to content

Pass request_context to resolvers as a context value #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Pass request_context to resolvers as a context value #19

wants to merge 1 commit into from

Conversation

ciscorn
Copy link
Contributor

@ciscorn ciscorn commented Aug 23, 2018

Request objects should be accessible via info.context, like sanic-graphql, aiohttp-graphql, etc.

@erik-megarad
Copy link

Is there any chance of this getting merged? This is blocking me, as there's no way to pass the request to a resolver.

@messa
Copy link

messa commented Mar 9, 2019

@subwindow

Is there any chance of this getting merged? This is blocking me, as there's no way to pass the request to a resolver.

@Cito is working on graphql-ws-next, hopefully will be published soon.

In the meantime you can "monkeypatch" this library - see #7 (comment) or the same thing in my demo project.

@erik-megarad
Copy link

Awesome, that worked. Thanks!

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