expressGraphQL is not a function

Please replace your expressGraphQL with graphqlHTTP as it was destructured

Use:

const { graphqlHTTP } = require('express-graphql');

or

const expressGraphQL = require('express-graphql').graphqlHTTP

This is because a method called graphqlHTTP exist in the express-graphql module and you are destructure with another method name that does not exist in the module

I also noticed that you have a dot after 5000 on the app.listen function.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)