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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…