write-model
The write-model
exports two functions repositoryBuilder
and commandServiceBuilder
.
To initialize the model, you pass an adapter
and reducer
to the repositoryBuilder
to generate a repository
. Then you pass the repository
and actions
to the commandServiceBuilder
to generate a list of commands
Example
readModel.js
Last updated