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

add noAutoCreate option to view builder #9

Closed andywer closed 9 years ago

andywer commented 9 years ago

Adds an option to defineViewBuilder that disables automatic creation of view models. So you may update a view model only if it has been created previously, for instance.

Cheers

adrai commented 9 years ago

Why not naming it existing? Like in saga or domain? Can you update the readme too?

andywer commented 9 years ago

That's been my first thought. But in this case I don't assert that the view model has to be present nor that it must not yet exist. I don't know if it exists or not and that's fine for me.

It's more like saying: "I want the domain handler's default behaviour"

But there is also a good chance that I'm missing something ;)

adrai commented 9 years ago

Ok

adrai commented 9 years ago

Readme?

andywer commented 9 years ago

Yeah, true... I'll update the readme tomorrow!

adrai commented 9 years ago

Idea: rename to autocreate (default true)

andywer commented 9 years ago

Sure.

andywer commented 9 years ago

Updated code