feat: Integrate asynchronous GraphQL context in Hono handler
This commit is contained in:
@@ -28,7 +28,7 @@ const yoga = createYoga({
|
||||
const app = new Hono<Cloudflare.Env>();
|
||||
|
||||
app.all("/", async (c) => {
|
||||
const graphqlContext = createGraphQLContext(c);
|
||||
const graphqlContext = await createGraphQLContext(c);
|
||||
|
||||
// Create a custom request object that includes our GraphQL context
|
||||
const request = c.req.raw.clone();
|
||||
|
||||
Reference in New Issue
Block a user