Skip to content

Commit 6992ce0

Browse files
committed
Thread request context to graphql executor
Closes graphql-python#7.
1 parent 06e7c65 commit 6992ce0

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)