1.0.3 • Published 6 years ago
egg-cqrs v1.0.3
egg-cqrs
Install
$ npm i egg-cqrs --save
Usage
// {app_root}/config/plugin.js
exports.cqrs = {
enable: true,
package: 'egg-cqrs',
};
Configuration
// {app_root}/config/config.default.js
exports.cqrs = {
};
exports.ML = {
_list: [ 'User' ], // The model you would load
_db: 'mock', // like mongoose,mysql...
};
see config/config.default.js for more detail.
Example
actor to use
ctx.actor.Social
LoadData
await app.MemoryLoad(app);
Questions & Suggestions
Please open an issue here.