There are three ways to add custom application logic to models:
- Remote methods - REST endpoints mapped to Node functions.
- Remote hooks - Logic that triggers when a remote method is executed (before or after).
- Operation hooks - Logic triggered when a model performs create, read, update, and delete operations against a data source.
You can further refine the timing of custom logic by configuring how you call each method. In any case, you will be required to code your own logic as LoopBack simply provides the mechanisms to trigger your logic.