Skip to content

Commit 31de8cc

Browse files
committed
Use context option (if provided) as the context_value for the execution of the query.
1 parent d42846e commit 31de8cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_graphql/graphqlview.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_root_value(self, request):
4747
return self.root_value
4848

4949
def get_context(self, request):
50-
return request
50+
return self.context or request
5151

5252
def get_middleware(self, request):
5353
return self.middleware

0 commit comments

Comments
 (0)