Solucion error : en la constante require agregar { }
app.use('/graphql', graphqlHTTP({
^
TypeError: graphqlHTTP is not a function
app.use('/graphql', graphqlHTTP({
^
TypeError: graphqlHTTP is not a function
//const graphqlHTTP = require('express-graphql'); const { graphqlHTTP } = require('express-graphql');