From 372371e76f7c5dcda3d7a1bdd3b156f0c7068291 Mon Sep 17 00:00:00 2001 From: joshwreford Date: Tue, 6 Oct 2020 12:10:50 +0100 Subject: [PATCH] Update Tutorial-PassingArguments.md The import statement for `graphqlHTTP` is incorrect. It throws an error when copied and pasted locally. --- site/graphql-js/Tutorial-PassingArguments.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/graphql-js/Tutorial-PassingArguments.md b/site/graphql-js/Tutorial-PassingArguments.md index 536b360f70..c7f7a1c249 100644 --- a/site/graphql-js/Tutorial-PassingArguments.md +++ b/site/graphql-js/Tutorial-PassingArguments.md @@ -58,7 +58,7 @@ The entire code for a server that hosts this `rollDice` API is: ```javascript var express = require('express'); -var graphqlHTTP = require('express-graphql'); +var { graphqlHTTP } = require('express-graphql'); var { buildSchema } = require('graphql'); // Construct a schema, using GraphQL schema language