@sedd/cqrs
v3.2.2
Published
SEDD Dashboard CQRS Assets
Downloads
6
Readme
SEDD Dashboard CQRS/ES Assets
Assets required to read/write to SEDD event-store.
npm i @sedd/cqrs
Projections
This module requires the following continous, emit-enabled projection:
fromStreams("contracts", "rigs", "users", "shifts", "timecards")
.when({
$any : function(s,e) {
if(e.metadata && e.metadata.aggregateType && e.metadata.aggregateId) {
linkTo(`${e.metadata.aggregateType}-${e.metadata.aggregateId}`, e);
}
}
});