diff --git a/.changeset/metal-seas-add.md b/.changeset/metal-seas-add.md new file mode 100644 index 00000000..35a0a97a --- /dev/null +++ b/.changeset/metal-seas-add.md @@ -0,0 +1,5 @@ +--- +"graphql-helix": patch +--- + +fix missing context in subscribe function diff --git a/packages/core/lib/process-request.ts b/packages/core/lib/process-request.ts index 14d9505f..1fa01610 100644 --- a/packages/core/lib/process-request.ts +++ b/packages/core/lib/process-request.ts @@ -137,7 +137,7 @@ export const processRequest = async ( schema, document, rootValue, - context, + contextValue: context, variableValues, operationName, });