diff --git a/packages/strapi-plugin-graphql/services/Resolvers.js b/packages/strapi-plugin-graphql/services/Resolvers.js index 45328cc731..7ff4d885ce 100644 --- a/packages/strapi-plugin-graphql/services/Resolvers.js +++ b/packages/strapi-plugin-graphql/services/Resolvers.js @@ -398,7 +398,7 @@ module.exports = { queryOpts.skip = convertedParams.start; switch (association.nature) { - case 'manyToMany': { + case 'manyToMany': if (association.dominant) { const arrayOfIds = (obj[association.alias] || []).map( related => { @@ -413,8 +413,7 @@ module.exports = { [ref.primaryKey]: arrayOfIds, ...where.where, }).where; - } - break; + break; // falls through } default: