@worldsibu/convector-core-model
Advanced tools
Weekly downloads
Readme
This module contains the base model to be used as a base for any other model.
The children classes can be used in 1 of 3 ways:
class MyModel extends ConvectorModel<MyModel> { ... }
const model = new MyModel(id);
model.fetch()
.then(onModelFound)
.catch(onModelNotFound);
class MyModel extends ConvectorModel<MyModel> { /* ... */ }
@Controller('my-controller')
class MyController {
@Invokable()
public async myMethod(
@Param(MyModel)
myModel: MyModel
) {
myModel.save();
}
}
class MyModel extends ConvectorModel<MyModel> { /* ... */ }
const myModel = new MyModel();
myModel.name = 'name';
myModel.info = 'info';
/* ... */
myModel.save();
FAQs
Convector Model base class
The npm package @worldsibu/convector-core-model receives a total of 345 weekly downloads. As such, @worldsibu/convector-core-model popularity was classified as not popular.
We found that @worldsibu/convector-core-model demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.