Skip to content

Commit bae04cc

Browse files
authored
Merge pull request graphql#918 from echamudi/patch-1
Fix "TypeError: graphqlHTTP is not a function" in Passing Arguments page, GraphQL js tutorial
2 parents a9312f7 + a4c4f66 commit bae04cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/graphql-js/Tutorial-PassingArguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The entire code for a server that hosts this `rollDice` API is:
5858

5959
```javascript
6060
var express = require('express');
61-
var graphqlHTTP = require('express-graphql');
61+
var { graphqlHTTP } = require('express-graphql');
6262
var { buildSchema } = require('graphql');
6363

6464
// Construct a schema, using GraphQL schema language

0 commit comments

Comments
 (0)