We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 560f1cd commit 7ac6115Copy full SHA for 7ac6115
sanic_graphql/graphqlview.py
@@ -47,7 +47,7 @@ def get_root_value(self, request):
47
return self.root_value
48
49
def get_context(self, request):
50
- context = self.context or {}
+ context = self.context.copy() if self.context else {}
51
if isinstance(context, dict) and 'request' not in context:
52
context.update({'request': request})
53
return context
0 commit comments