Skip to content

Commit

Permalink
fix(graphql): fix the context not propagated down to resolvers. (#361)
Browse files Browse the repository at this point in the history
* fix(ctx): fix the context not propagated down to resolvers.

* chore(changeset): add a changeset
  • Loading branch information
metrue authored Jan 28, 2024
1 parent bc23e03 commit 2c7b25f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-shoes-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hono/graphql-server': patch
---

Fix the context not propagated down to resovlers issue.
1 change: 1 addition & 0 deletions packages/graphql-server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export const graphqlServer = <E extends Env = any, P extends string = any, I ext
schema,
document: documentAST,
rootValue: rootResolver ? await rootResolver(c) : null,
contextValue: c,
variableValues: variables,
operationName: operationName,
})
Expand Down

0 comments on commit 2c7b25f

Please sign in to comment.