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

Added non-breaking db implementation specific settings support to collection definition. #56

Closed nanov closed 7 years ago

nanov commented 7 years ago

"repositorySettings" object can now be added to the collection definition containing specific settings per implementation. If the implementation is used those are passed to the repository via extend. How and if those settings are used depends on the viewmodel db implementation.

d.defineCollection({
   name: "col",
   repositorySettings: {
     elasticsearch: {
        // specific elasticsearch settings
     },
     mongodb: {
        // specific mongodb settings
     }
   }
});
adrai commented 7 years ago

Can you remove the package-lock.json ?

nanov commented 7 years ago

done :)