Remove login, register, me from only graphql schema

I’ve run into this issue as well. I’m able to fully disable the permission content-type, but the others cause the NEXUS__UNKNOWN__TYPE error on restart.

This happens for several plugins. Basically, I’d like to fully disable shadowCRUD for the built-in content-types (permissions, i18, upload, etc.) and only generate graphql schema for my own content-types.

The following allows the server to start, but does not fully disable the plugins as desired.

graphqlExt.shadowCRUD('plugin::users-permissions.permission').disable()
graphqlExt.shadowCRUD('plugin::users-permissions.role').disableQueries()
graphqlExt.shadowCRUD('plugin::users-permissions.role').disableMutations()
graphqlExt.shadowCRUD('plugin::users-permissions.user').disableQueries()
graphqlExt.shadowCRUD('plugin::users-permissions.user').disableMutations()
1 Like