This is an application for Loopback
npm install loopback-custom-delete-mixin
Add the mixin to model-config.json : /node_modules/loopback-custom-delete-mixin
This mixin overrides the 'deleteById' function and sets a 'status' property if needed. Deleting an instance now changes the 'status' property to 'DISABLED'
- Author: Manuel Garcia (manuel.garcia@gnommo.com)