By default, the basic LoopBack Model object has properties and methods “mixed in” from:
- Inclusion object - Enables you to load relations of several objects and optimize numbers of requests.
- Validateable object - provides validation methods; see Validating model data.
When you define relations between models, the RelationMixin object object also gets mixed in to the model object.
Note: The following events are deprecated in favor of operation hooks:
The following table summarizes the events that LoopBack models can emit. For more information, see Events.
|Class methods that emit
|Instance methods that emit
|Model is attached to an app.
|Model is attached to a Data source.
|Model property is set.