thenativeweb / node-cqrs-eventdenormalizer

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

how to trigger multiple ViewBuilders for a single event #64

Closed alemhnan closed 7 years ago

alemhnan commented 7 years ago

I'm trying to define two ViewBuilders in different collections triggered by the same event. It seems that only one is going to be triggered.

Is it possible?

adrai commented 7 years ago

no... this should be possible... i.e. look at: https://github.com/adrai/node-cqrs-eventdenormalizer/blob/master/test/integration/fixture/set1/personDetail/viewBuilders/enteredNewPerson.js https://github.com/adrai/node-cqrs-eventdenormalizer/blob/master/test/integration/fixture/set1/person/viewBuilders/enteredNewPerson.js

alemhnan commented 7 years ago

Thanks for the prompt answer and the links. I'll dive more into that, most likely I'm doing some silly mistake.

alemhnan commented 7 years ago

It's working, just some minor error on the definition of the Viewbuilders on my side