A projection is a function that takes a domain event and converts it into an action on a list, tree, graph, any ...
, , , . , , , X INSERT
UPDATE
DELETE
.
, CRUD. , .
, . , , userLoggedIn
, . , . , . - .
(, ), , . , , , .
: - , . , , , : , - , .
, , , . wolkenkit, CQRS JavaScript Node.js, - . , , .
(, , wolkenkit) :
'use strict';
const when = {
'userManagement.user.loggedIn' (event, mark) {
mark.asDone();
}
};
module.exports = { when };
( : wolkenkit, , , .)
source
share