Closed KerimG closed 2 years ago
Try
app.listen(8165, () => {
'Running a GraphQL API server at :8165/graphql';
});
@harsh3977 thanks for the info. That's the first thing I tired, since it's the default express way, but it looks like express-graphql seems to somehow supress it
Sorry My bad. Try async before the function app.listen(8165,async () => { 'Running a GraphQL API server at :8165/graphql'; });
@harsh3977
Thanks a ton. That seems to have worked. I don't know why the callback has to be async
but that seems to have fixed it.
I have a very simple graphql setup that looks something like this:
but for some reason the callback isn't being called. I figure this has something to do with the middleware.