graphql-python / flask-graphql

Adds GraphQL support to your Flask application.
MIT License
1.32k stars 139 forks source link

context is lost with rc2 #45

Open j-robin-hunter opened 6 years ago

j-robin-hunter commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

+1