How do I remove GraphQL mutations related to plugins?

System Information
  • Strapi Version: 4.3.4
  • Operating System: MacOs
  • Database: MySQL 8
  • Node Version: 14.19.1
  • NPM Version: 6.14.16
  • Yarn Version: 1.22.19

I opened an issue on Strapi’s Github about a week ago but haven’t had a response there yet. I won’t repeat everything again here, as I’ve outlined it in detail in the Github issue. But, in summary, I’m using the GraphQL plugin and I can’t remove the generated mutations for some of the Strapi plugins from the schema.

All the details can be found here: Cannot remove GraphQL mutations related to plugins · Issue #14287 · strapi/strapi · GitHub

I’d really appreciate it if anyone can help me out with how to do this!

Thanks :slight_smile:

2 years later this still isn’t especially clear to me. I’ve tried similar to what you’ve tried in the current version with no luck. I think the problem is that they already disable ShadowCRUD in the plugin:

and then they manually add resolvers for the mutations and the me OUTSIDE of ShadowCRUD:

The only thing I can see to do is to override the mutations with custom resolvers and throw an error. It doesn’t remove the mutations from the data schema, though, so it’s not really an answer to your original question.

I’ve added the solution I came up with to the Github issue linked in the original post above. Hope it’s helpful.