How to filter graphql query with strapi

Found this:

In /home/yoyo/Documents/my-strapi/node_modules/@strapi/plugin-graphql/server/services/content-api/index.js there is a call to pruneSchema from @graphql-tools/utils package which leaves only the sort argument in the generated content type schemas. It seems that this happens with the latest version 8.6.8 of @graphql-tools/utils. If we force the version 8.6.7 the schemas are generated correctly. I added this in the package.json

"resolutions": { "@graphql-tools/utils": "8.6.7" }

This did not regenerate the filters. Still looking for a solution. :slight_smile:

3 Likes