3.2.2 • Published 6 years ago

@sedd/cqrs v3.2.2

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

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);
            }
        }
    });