fix(graphql): fix the context not propagated down to resolvers. (#361)
* fix(ctx): fix the context not propagated down to resolvers. * chore(changeset): add a changesetpull/362/head
parent
bc23e035e6
commit
2c7b25fc2a
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@hono/graphql-server': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix the context not propagated down to resovlers issue.
|
|
@ -133,6 +133,7 @@ export const graphqlServer = <E extends Env = any, P extends string = any, I ext
|
||||||
schema,
|
schema,
|
||||||
document: documentAST,
|
document: documentAST,
|
||||||
rootValue: rootResolver ? await rootResolver(c) : null,
|
rootValue: rootResolver ? await rootResolver(c) : null,
|
||||||
|
contextValue: c,
|
||||||
variableValues: variables,
|
variableValues: variables,
|
||||||
operationName: operationName,
|
operationName: operationName,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue