text: 
  
  export default async function (payload) {
     function customizer(objValue, srcValue) {
        if (payload.ctx.helpers.lodash.isArray(objValue)) {
           return objValue.concat(srcValue);
        }
     }
  
     for (let f in payload.body.schema) {
        if (typeof payload.body.schema[f].relation == "string") {
           payload.body.schema[f].type = "_id";
        }
     }
  
     let methods = ["post", "get", "getAll", "patch", "delete", "schema", "test"];
  
     for (let f of Object.keys(payload.body.schema)) {
        payload.body.schema[f] = payload.ctx.helpers.lodash.mergeWith(
           payload.body.schema[f],
           { write: [], read: [] },
           customizer
        );
     }
  
     for (let method of methods) {
        payload.body.fookie[method] = payload.ctx.helpers.lodash.mergeWith(
           payload.body.fookie[method],
           {
              modify: [],
              effect: [],
              rule: [],
              filter: [],
           },
           customizer
        );
     }
     payload.body.mixin = payload.ctx.helpers.lodash.mergeWith(payload.body.mixin, [], customizer);
  }
  