Skip to content

Fix import error in GraphQL.js sample code #905

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
Aug 19, 2020

Conversation

AmmonMatthews
Copy link
Contributor

changed graphqlHTTP to { graphqlHTTP }. It was erroring out and doesn't look like it is a default export but a named export from the error I received saying TypeError: graphqlHTTP is not a function

changed graphqlHTTP to { graphqlHTTP }
Copy link
Member

@carolstran carolstran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for taking care of this @AmmonMatthews! Also closes #895.

My only note would be to update the commit message to give a bit more context (ie. Fix import error in GraphQL.js sample code instead of Changed line 21) - but that could happen when merging.

Pinging @IvanGoncharov to merge 😊

@IvanGoncharov IvanGoncharov changed the title Changed line 21 Fix import error in GraphQL.js sample code Aug 19, 2020
@IvanGoncharov IvanGoncharov merged commit 719071f into graphql:source Aug 19, 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.

3 participants