From ed63facfcc8d2c72379976a330335ab1b5dd76cd Mon Sep 17 00:00:00 2001 From: Tales M Godois Date: Thu, 28 Dec 2023 16:29:21 -0300 Subject: [PATCH] Documentation, fix params of Bun.serve to use yoga --- .../src/pages/docs/integrations/integration-with-bun.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/src/pages/docs/integrations/integration-with-bun.mdx b/website/src/pages/docs/integrations/integration-with-bun.mdx index d229224a00..72f654b535 100644 --- a/website/src/pages/docs/integrations/integration-with-bun.mdx +++ b/website/src/pages/docs/integrations/integration-with-bun.mdx @@ -38,7 +38,11 @@ const yoga = createYoga({ } }) }) -const server = Bun.serve(yoga) + +const server = Bun.serve({ + fetch: yoga, +}); + console.info( `Server is running on ${new URL( yoga.graphqlEndpoint,