flask-graphql icon indicating copy to clipboard operation
flask-graphql copied to clipboard

context is lost with rc2

Open j-robin-hunter opened this issue 7 years ago • 2 comments

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.

j-robin-hunter avatar Jun 08 '18 13:06 j-robin-hunter

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()}

gabor-lbl avatar Jul 20 '18 17:07 gabor-lbl

+1

zhammer avatar Oct 04 '18 00:10 zhammer