diff --git a/website/src/pages/docs/guides/vanilla-typescript.mdx b/website/src/pages/docs/guides/vanilla-typescript.mdx index 5c50b3481b1..3703e1dc3b8 100644 --- a/website/src/pages/docs/guides/vanilla-typescript.mdx +++ b/website/src/pages/docs/guides/vanilla-typescript.mdx @@ -183,7 +183,7 @@ returns a typed response. import type { TypedDocumentString } from './graphql' export async function execute( - query: TypedDocumentString, + document: TypedDocumentString, ...[variables]: TVariables extends Record ? [] : [TVariables] ) { const response = await fetch('https://swapi-graphql.netlify.app/.netlify/functions/index', {