graphql-python / flask-graphql

Adds GraphQL support to your Flask application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

context is lost with rc2

j-robin-hunter opened this issue · 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.

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