From 786ccbf7f7b36ae9bf160944d39b926b095268ce Mon Sep 17 00:00:00 2001 From: Sajjad Shirazy Date: Tue, 8 Jan 2019 13:10:18 +0330 Subject: [PATCH] bugfix: in `production` Playground doesn't load the schema --- packages/strapi-plugin-graphql/hooks/graphql/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/strapi-plugin-graphql/hooks/graphql/index.js b/packages/strapi-plugin-graphql/hooks/graphql/index.js index 8f36e33166..3e5b802663 100644 --- a/packages/strapi-plugin-graphql/hooks/graphql/index.js +++ b/packages/strapi-plugin-graphql/hooks/graphql/index.js @@ -174,6 +174,7 @@ module.exports = strapi => { serverParams.playground = { endpoint: strapi.plugins.graphql.config.endpoint, }; + serverParams.introspection = true; } const server = new ApolloServer(serverParams);