Open michaelmiscanuk opened 2 years ago
and another simple fix for it would be
// const expressGraphql = require("express-graphql");
const { graphqlHTTP } = require("express-graphql");
app.use("/graphql", graphqlHTTP({
schema,
graphiql: true,
})
);
Hi, found a solution for this error when starting a server, so sharing:
I just changed a line when requiring express-graphql to:
Now it starts ok.