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

Replace your expressGraphQL with graphqlHTTP as it was destructured

Open Harrish-Selvarajah opened this issue 3 years ago • 1 comments

"express-graphql": "^0.12.0" does not work with the method expressGraphQL, use const { graphqlHTTP } = require('express-graphql'); or const expressGraphQL = require('express-graphql').graphqlHTTP

Refer https://stackoverflow.com/questions/65517979/expressgraphql-is-not-a-function

Harrish-Selvarajah avatar Oct 01 '22 18:10 Harrish-Selvarajah

that's true. I had the same issue

bizimunda avatar Oct 17 '22 11:10 bizimunda