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!'; },