Merge branch 'master' into master

This commit is contained in:
Sulakin Vadim 2019-12-06 14:58:07 +03:00 committed by GitHub
commit f5ca33c0df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,6 +83,11 @@ module.exports = strapi => {
playground: false,
cors: false,
bodyParserConfig: true,
introspection: _.get(
strapi.plugins.graphql,
'config.introspection',
true
),
};
// Disable GraphQL Playground in production environment.
@ -92,10 +97,8 @@ module.exports = strapi => {
) {
serverParams.playground = {
endpoint: strapi.plugins.graphql.config.endpoint,
shareEnabled: strapi.plugins.graphql.config.shareEnabled
shareEnabled: strapi.plugins.graphql.config.shareEnabled,
};
serverParams.introspection = true;
}
const server = new ApolloServer(serverParams);