1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| createCollection({ callbacks { create: { validate: [(validationErrors, properties) => { return validationErrors; }], before: [(document, properties) => { return document; }], after: [(document, properties) => { return document; }], async: [(properties) => { }], } update: { validate: [(validationErrors, properties) => { return validationErrors; }], before: [(data, properties) => { return data; }], after: [(document, properties) => { return document; }], async: [(properties) => { }], } delete: { validate: [(validationErrors, properties) => { return validationErrors; }], before: [(document, properties) => { return document; }], after: [(document, properties) => { return document; }], async: [(properties) => { }], } } });
|