From 0148a46028b1a7e64d146c2e2f08f8feae9dc397 Mon Sep 17 00:00:00 2001 From: Fatih Ozdemir <106387422+fto-dev@users.noreply.github.com> Date: Wed, 26 Feb 2025 07:27:52 +0300 Subject: [PATCH] fixed typo running-an-express-graphql-server.mdx rootValue property value is "root", but "root" is not defined. "rootValue" is defined. This commit will change defined value from rootValue to root. --- website/pages/docs/running-an-express-graphql-server.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/pages/docs/running-an-express-graphql-server.mdx b/website/pages/docs/running-an-express-graphql-server.mdx index 387716bb46..016015c6c6 100644 --- a/website/pages/docs/running-an-express-graphql-server.mdx +++ b/website/pages/docs/running-an-express-graphql-server.mdx @@ -24,7 +24,7 @@ const express = require('express'); const schema = buildSchema(`type Query { hello: String } `); // The rootValue provides a resolver function for each API endpoint -const rootValue = { +const root = { hello() { return 'Hello world!'; },