Skip to content

Commit df58bee

Browse files
authored
Merge pull request #1 from bendemaree/fix/7
Thread request context to graphql executor
2 parents 5f2cff5 + 6992ce0 commit df58bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql_ws/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def on_connection_terminate(self, connection_context, op_id):
172172

173173
def execute(self, request_context, params):
174174
return graphql(
175-
self.schema, **dict(params, allow_subscriptions=True))
175+
self.schema, **dict(params, context_value=request_context, allow_subscriptions=True))
176176

177177
def handle(self, ws, request_context=None):
178178
raise NotImplementedError("handle method not implemented")

0 commit comments

Comments
 (0)