Skip to content

Commit 2ad9fc7

Browse files
authored
Fix import of express-graphql (graphql#899)
1 parent db1dabd commit 2ad9fc7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

site/graphql-js/Tutorial-Authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For example, let's say we wanted our server to log the IP address of every reque
1515

1616
```javascript
1717
var express = require('express');
18-
var graphqlHTTP = require('express-graphql');
18+
var { graphqlHTTP } = require('express-graphql');
1919
var { buildSchema } = require('graphql');
2020

2121
var schema = buildSchema(`

site/graphql-js/Tutorial-BasicTypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Each of these types maps straightforwardly to JavaScript, so you can just return
1818

1919
```javascript
2020
var express = require('express');
21-
var graphqlHTTP = require('express-graphql');
21+
var { graphqlHTTP } = require('express-graphql');
2222
var { buildSchema } = require('graphql');
2323

2424
// Construct a schema, using GraphQL schema language

site/graphql-js/Tutorial-Mutations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Here's some runnable code that implements this schema, keeping the data in memor
7373

7474
```javascript
7575
var express = require('express');
76-
var graphqlHTTP = require('express-graphql');
76+
var { graphqlHTTP } = require('express-graphql');
7777
var { buildSchema } = require('graphql');
7878

7979
// Construct a schema, using GraphQL schema language

site/graphql-js/Tutorial-ObjectTypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Putting this all together, here is some sample code that runs a server with this
7474

7575
```javascript
7676
var express = require('express');
77-
var graphqlHTTP = require('express-graphql');
77+
var { graphqlHTTP } = require('express-graphql');
7878
var { buildSchema } = require('graphql');
7979

8080
// Construct a schema, using GraphQL schema language

0 commit comments

Comments
 (0)