Remove all User based endpoints from GraphQL Schema

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

I’m trying to federate our strapi cms with an existing graphql server. However, I can’t because our existing schema already has Login, Register, Me, etc. so the supergraph cannot resolve the conflicts with the strapi schema.

I’m trying to disable the login, register, me, and any other user/authentication queries or mutations but can only find how to disable shadowCRUD in the docs here: GraphQL - Strapi Developer Docs

I have tried
const extensionService = strapi.plugin('graphql').service('extension'); extensionService.shadowCRUD('api::login').disable();
but that doesn’t remove login from the schema on build.

How do we remove user based queries/mutations from the schema?
Any help would be appreciated.