apollo-server
apollo-server copied to clipboard
Graphiql doesn't work
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
is it like the #449 issue ?
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' }));