Learn-GraphQL
Learn-GraphQL copied to clipboard
Replace your expressGraphQL with graphqlHTTP as it was destructured
"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
that's true. I had the same issue