docs: Changed how to import graphqlHTTP in graphql-express modules #2693
+10
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
overview
I just followed the document at graphql-js tutorials.
But there is problem when I import graphqlHTTP from 'express-grapqhl'.
![image](https://user-images.githubusercontent.com/33471826/86720330-dff4a600-c05f-11ea-951d-a9750d1045be.png)
(The squared black blank is my user name.)
Because they updated express-grapqhl modules and updated official
![image](https://user-images.githubusercontent.com/33471826/86719670-3e6d5480-c05f-11ea-8d5b-40640225f41f.png)
README.md
27 days ago. express-graphql history (see below image)So I changed require statement in graphql-js tutorials.
var graphqlHTTP = require('express-graphql')
to
var { graphqlHTTP } = require('express-graphql')
And it works!
![image](https://user-images.githubusercontent.com/33471826/86720934-7759f900-c060-11ea-9f47-71c558a65e43.png)