From db91607dbc28fa40c5ef4a50b30a1deb1a574cd0 Mon Sep 17 00:00:00 2001 From: Jelmer Visser <39594925+JelmerV-WFC@users.noreply.github.com> Date: Mon, 14 Oct 2019 10:53:59 +0200 Subject: [PATCH] Added share playground feature --- packages/strapi-plugin-graphql/config/settings.json | 3 ++- packages/strapi-plugin-graphql/hooks/graphql/index.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/strapi-plugin-graphql/config/settings.json b/packages/strapi-plugin-graphql/config/settings.json index c292874f13..07ddc3fdcc 100644 --- a/packages/strapi-plugin-graphql/config/settings.json +++ b/packages/strapi-plugin-graphql/config/settings.json @@ -4,5 +4,6 @@ "shadowCRUD": true, "playgroundAlways": false, "depthLimit": 7, - "amountLimit": 100 + "amountLimit": 100, + "shareEnabled": false } diff --git a/packages/strapi-plugin-graphql/hooks/graphql/index.js b/packages/strapi-plugin-graphql/hooks/graphql/index.js index 7dbe3fe364..998a3e53a6 100644 --- a/packages/strapi-plugin-graphql/hooks/graphql/index.js +++ b/packages/strapi-plugin-graphql/hooks/graphql/index.js @@ -92,6 +92,7 @@ module.exports = strapi => { ) { serverParams.playground = { endpoint: strapi.plugins.graphql.config.endpoint, + shareEnabled: strapi.plugins.graphql.config.shareEnabled }; serverParams.introspection = true;