Skip to content

Commit 2ca1479

Browse files
authored
docs: Update getting-started.mdx (#4373)
1 parent 2df9d6f commit 2ca1479

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

website/pages/docs/getting-started.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ graphql({
5858
</Tabs.Tab>
5959
<Tabs.Tab>
6060
```javascript
61-
const { graphql, GraphQLSchema, GraphQLObjectType } = require('graphql');
61+
const { graphql, GraphQLSchema, GraphQLObjectType, GraphQLString } = require('graphql');
6262
6363
// Construct a schema
6464
const schema = new GraphQLSchema({

website/pages/docs/running-an-express-graphql-server.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ console.log('Running a GraphQL API server at http://localhost:4000/graphql');
4949
</Tabs.Tab>
5050
<Tabs.Tab>
5151
```javascript
52-
const { GraphQLObjectType, GraphQLSchema } = require('graphql');
52+
const { GraphQLObjectType, GraphQLSchema, GraphQLString } = require('graphql');
5353
const { createHandler } = require('graphql-http/lib/use/express');
5454
const express = require('express');
5555

0 commit comments

Comments
 (0)