[Solved] Using GraphiQL in production


#1

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?

(http://dev.apollodata.com/tools/graphql-server/graphiql.html)

Edit: i found the answer here:

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