How to disable `register` mutation with graphql and user-permissions plugin

You can disable mutations in the bootstrap function. e.g


extensionService.shadowCRUD("api::day.day").disableMutations();