feat: Integrate asynchronous GraphQL context in Hono handler

This commit is contained in:
2025-12-06 08:26:16 -05:00
parent 311d575c09
commit a2702db794

View File

@@ -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();