thenativeweb / node-cqrs-domain

Node-cqrs-domain is a node.js module based on nodeEventStore that. It can be very useful as domain component if you work with (d)ddd, cqrs, eventdenormalizer, host, etc.
http://cqrs.js.org/pages/domain.html
MIT License
269 stars 57 forks source link

how to do aggregate.apply(event) in defineCommandHandler #123

Open coco20131985 opened 6 years ago

coco20131985 commented 6 years ago

Hi, I just would like to insert the event when using commandhandler instead of command. when i use 'commandhandler': i tried commandHandler.commit(aggregate, stream, function(err){

    })

but stream is empty.

Thanks,

adrai commented 6 years ago

May I ask what your use case is?