Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
fix: pass context as contextValue to subscribe (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrearden authored Nov 19, 2021
1 parent 9e55fd8 commit ea28821
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/metal-seas-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"graphql-helix": patch
---

fix missing context in subscribe function
2 changes: 1 addition & 1 deletion packages/core/lib/process-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const processRequest = async <TContext = {}, TRootValue = {}>(
schema,
document,
rootValue,
context,
contextValue: context,
variableValues,
operationName,
});
Expand Down

0 comments on commit ea28821

Please sign in to comment.