Skip to content

Unable to migrate from express-graphql: loads forever #84

Answered by enisdenjo
Zhepu-zingbox asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there, thanks for writing. The issue is that you're not using the express specific handler from graphql-http. Consider making the following change:

- const {createHandler} = require('graphql-http');
+ const {createHandler} = require('graphql-http/lib/use/express');

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Zhepu-zingbox
Comment options

Answer selected by Zhepu-zingbox
Comment options

You must be logged in to vote
2 replies
@benjie
Comment options

@tomwyr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #83 on April 25, 2023 13:11.