Skip to content

Conversation

@akshatatray
Copy link

Before :
const expressGraphQL = require("express-graphql");

After :
const { graphqlHTTP } = require("express-graphql");

This is the correct way, as described in the documentation.

const expressGraphQL gave errors

@BarrBrian
Copy link

@WebDevSimplified - please consider this PR and consider putting a note on your video.

I believe the syntax may have changed since your original recording and this seems to be tripping many people up.

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