[Solved] Using GraphiQL in production

I deployed a simple server with apollo (deployed with mup).

on my localmachine I can access GraphiQL (the query-test-ui) with localhost:3000/graphiql, but on production i get an empty page on that route.

Is graphiql disabled on production? how can i enable it?

(Introduction to Apollo Server - Apollo GraphQL Docs)

Edit: i found the answer here:

http://dev.apollodata.com/core/meteor.html#createApolloServer

createApolloServer(
  {
    schema,
    context,
  },
  {
    graphiql: true,
  },
);
1 Like