Skip to content

Fixes syntax error in Express example #892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2020
Merged

Fixes syntax error in Express example #892

merged 1 commit into from
Jul 12, 2020

Conversation

cujarrett
Copy link
Contributor

What

The docs as they were result in an error in the Express example.

app.use("/graphql", graphqlHTTP({
                    ^

TypeError: graphqlHTTP is not a function
    at Object.<anonymous> (/Users/matt-jarrett/Development/learning-graphql/examples/express.js:14:21)

I used ES2015's destructuring to pull out graphqlHTTP and the Express example works fine.

@IvanGoncharov IvanGoncharov merged commit a371732 into graphql:source Jul 12, 2020
Dipeshwagle pushed a commit to Dipeshwagle/graphql.github.io that referenced this pull request Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants