diff --git a/packages/strapi-plugin-graphql/hooks/graphql/index.js b/packages/strapi-plugin-graphql/hooks/graphql/index.js index c6872a80f1..7530b4e042 100644 --- a/packages/strapi-plugin-graphql/hooks/graphql/index.js +++ b/packages/strapi-plugin-graphql/hooks/graphql/index.js @@ -35,7 +35,7 @@ module.exports = strapi => { // Load root configurations. new Promise((resolve, reject) => { glob( - './config/*.graphql', + './config/*.graphql?(.js)', { cwd: strapi.config.appPath, }, @@ -54,7 +54,7 @@ module.exports = strapi => { // Load APIs configurations. new Promise((resolve, reject) => { glob( - './api/*/config/*.graphql', + './api/*/config/*.graphql?(.js)', { cwd: strapi.config.appPath, }, @@ -73,7 +73,7 @@ module.exports = strapi => { // Load plugins configurations. new Promise((resolve, reject) => { glob( - './plugins/*/config/*.graphql', + './plugins/*/config/*.graphql?(.js)', { cwd: strapi.config.appPath, },