Skip to content
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

context is lost with rc2 #45

Open
j-robin-hunter opened this issue Jun 8, 2018 · 2 comments
Open

context is lost with rc2 #45

j-robin-hunter opened this issue Jun 8, 2018 · 2 comments

Comments

@j-robin-hunter
Copy link

Hard to demonstrate, but with version 1.4 I set a conect value as a dictionary and this gets past to my resolver (graphene 2.1.1) but with rc2 the context passed is a proxy that does not contain any of my passed context values.

@gabor-lbl
Copy link

I agree - what is the plan to create a custom context now?

Here is my workaround:

class MyGraphQLView(GraphQLView):
def get_context(self):
return {'session': db_session, 'request': super().get_context()}

@zhammer
Copy link

zhammer commented Oct 4, 2018

+1

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

No branches or pull requests

3 participants