Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphiql doesn't work #457

Closed
Ibrahim9595 opened this issue Jul 8, 2017 · 2 comments
Closed

Graphiql doesn't work #457

Ibrahim9595 opened this issue Jul 8, 2017 · 2 comments

Comments

@Ibrahim9595
Copy link

I've setup the graphql-tools from Apollo and the graphiql doesn't show results it gives me plain html any idea how to fix this

@bwlt
Copy link
Contributor

bwlt commented Jul 10, 2017

is it like the #449 issue ?

@shkurkin
Copy link

I just ran into this. The fix for me was that I hadn't set the endpointURL correctly.

before (broken, just seeing lots of red html in the results box)

app.use('/gql', bodyParser.json(), graphqlExpress({ schema: schema }))
app.use('/iql', graphiqlExpress({ endpointURL: '/iql' }));

after (fixed)

app.use('/gql', bodyParser.json(), graphqlExpress({ schema: schema }))
app.use('/iql', graphiqlExpress({ endpointURL: '/gql' }));

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants