mirror of
https://github.com/strapi/strapi.git
synced 2025-08-23 08:09:10 +00:00
10 lines
269 B
JavaScript
10 lines
269 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
const crudActionsToDisable = ['create', 'update', 'delete'];
|
||
|
|
||
|
module.exports = ({ strapi }) => {
|
||
|
const extension = strapi.plugin('graphql').service('extension');
|
||
|
|
||
|
extension.shadowCRUD('plugin::myplugin.test').disableActions(crudActionsToDisable);
|
||
|
};
|