Learn-GraphQL icon indicating copy to clipboard operation
Learn-GraphQL copied to clipboard

Updated expressGraphQL to graphqlHTTP

Open akshatatray opened this issue 5 years ago • 1 comments

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

akshatatray avatar Nov 05 '20 17:11 akshatatray

@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.

BarrBrian avatar May 17 '21 14:05 BarrBrian