86 lines
1.9 KiB
Plaintext
Raw Normal View History

2016-03-18 11:12:50 +01:00
'use strict';
/**
2016-03-25 22:22:34 +01:00
* Lifecycle callbacks for the `<%= globalID %>` model.
2016-03-18 11:12:50 +01:00
*/
module.exports = {
2016-03-25 22:22:34 +01:00
// Before saving a value.
// Fired before an `insert` or `update` query.
2017-09-12 17:58:31 +02:00
// beforeSave: function (next) {
// // Use `this` to get your current object
// next();
2016-03-25 22:22:34 +01:00
// },
2016-03-18 11:12:50 +01:00
2016-03-25 22:22:34 +01:00
// After saving a value.
// Fired after an `insert` or `update` query.
2017-09-12 17:58:31 +02:00
// afterSave: function (doc, next) {
// next();
2016-03-25 22:22:34 +01:00
// },
2016-03-18 11:12:50 +01:00
2017-10-23 11:01:58 +02:00
// Before fetching all values.
// Fired before a `fetchAll` operation.
// beforeFetchAll: function (next) {
// // Use `this` to get your current object
// next();
// },
// After fetching all values.
// Fired after a `fetchAll` operation.
// afterFetchAll: function (doc, next) {
// next();
// },
2016-03-25 22:22:34 +01:00
// Fired before a `fetch` operation.
2017-09-12 17:58:31 +02:00
// beforeFetch: function (next) {
// // Use `this` to get your current object
// next();
2016-03-25 22:22:34 +01:00
// },
2016-03-18 11:12:50 +01:00
2016-03-25 22:22:34 +01:00
// After fetching a value.
// Fired after a `fetch` operation.
2017-09-12 17:58:31 +02:00
// afterFetch: function (doc, next) {
// next();
2016-03-25 22:22:34 +01:00
// },
2016-03-18 11:12:50 +01:00
// Before creating a value.
2016-03-25 22:22:34 +01:00
// Fired before `insert` query.
2017-09-12 17:58:31 +02:00
// beforeCreate: function (next) {
// // Use `this` to get your current object
// next();
2016-03-18 11:12:50 +01:00
// },
// After creating a value.
2016-03-25 22:22:34 +01:00
// Fired after `insert` query.
2017-09-12 17:58:31 +02:00
// afterCreate: function (doc, next) {
// next();
2016-03-18 11:12:50 +01:00
// },
// Before updating a value.
2016-03-25 22:22:34 +01:00
// Fired before an `update` query.
2017-09-12 17:58:31 +02:00
// beforeUpdate: function (next) {
// // Use `this` to get your current object
// next();
2016-03-18 11:12:50 +01:00
// },
// After updating a value.
2016-03-25 22:22:34 +01:00
// Fired after an `update` query.
2017-09-12 17:58:31 +02:00
// afterUpdate: function (doc, next) {
// next();
2016-03-18 11:12:50 +01:00
// },
2016-03-25 22:22:34 +01:00
// Before destroying a value.
// Fired before a `delete` query.
2017-09-12 17:58:31 +02:00
// beforeDestroy: function (next) {
// // Use `this` to get your current object
// next();
2016-03-18 11:12:50 +01:00
// },
2016-03-25 22:22:34 +01:00
// After destroying a value.
// Fired after a `delete` query.
2017-09-12 17:58:31 +02:00
// afterDestroy: function (doc, next) {
2017-10-10 15:14:20 +02:00
// next();
2016-03-18 11:12:50 +01:00
// }
};