mirror of
https://github.com/strapi/strapi.git
synced 2026-01-05 11:45:51 +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);
|
||
|
|
};
|