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.
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.