context is lost with rc2
j-robin-hunter opened this issue · comments
j-robin-hunter commented
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 Torok commented
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()}
Zach Hammer commented
+1