after save vs before save loopback code example
Example: loopback before save
module.exports = function (model) {
model.observe('before save', async function(ctx, next) {
});
};
module.exports = function (model) {
model.observe('before save', async function(ctx, next) {
});
};