You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a LoopBack 4 developer, I'd like my models to automatically be loaded into my application on boot, so that I don't have to write tons of bind calls myself.
Acceptance Criteria
On application boot
Read src/models by default (configurable)
Parse the JS (TS) files as models and bind them to the app-level context
Parse the JSON/YAML files as metadata and call the underlying model / property decorator functions to associate that metadata with the corresponding JS/TS model files
Ex.
constmodelClass=loadModel(modelPath);constmetadataObject=loadMetadata(metaPath);// @model is just modelmodel(metadataObject)(modelClass);
Docs on loopback.io
Blog post about the new functionality
Other Details
The text was updated successfully, but these errors were encountered:
Story
As a LoopBack 4 developer, I'd like my models to automatically be loaded into my application on boot, so that I don't have to write tons of bind calls myself.
Acceptance Criteria
src/models
by default (configurable)model / property
decorator functions to associate that metadata with the corresponding JS/TS model filesEx.
Other Details
The text was updated successfully, but these errors were encountered: