From bf55b18548d3e07d7fd5fefdc47d170f395be559 Mon Sep 17 00:00:00 2001 From: Benjie Date: Thu, 1 May 2025 08:31:58 +0100 Subject: [PATCH] Reference with .js extension --- website/src/content/docs/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/content/docs/index.mdx b/website/src/content/docs/index.mdx index b3b4f97fdf..8d5157a006 100644 --- a/website/src/content/docs/index.mdx +++ b/website/src/content/docs/index.mdx @@ -177,10 +177,10 @@ export const schema = new GraphQLSchema({ After you have created a GraphQL schema, simply pass it in to Yoga and liftoff! 🚀 -```js +```js filename="server.js" import { createServer } from 'node:http' import { createYoga } from 'graphql-yoga' -import { schema } from './schema' +import { schema } from './schema.js' // Create a Yoga instance with a GraphQL schema. const yoga = createYoga({ schema })