meteor-space / base

Foundation for Modular Application Architecture in Meteor.
MIT License
75 stars 5 forks source link

make structs serializable from and to plain data objects #47

Closed DominikGuzei closed 8 years ago

DominikGuzei commented 8 years ago

Makes it possible to transform complete struct hierarchies to plain data objects and vice versa. This will be used in the upcoming commit store refactoring, so that all our event and command data is saved as data that can be queried with mongoDB. Also for projections this will be useful, as we can now simply parse the pure data into structs / VOs :wink:

DominikGuzei commented 8 years ago

@darko-mijic this works now as expected. I have it running with the business app @rhyslbw and i am building. I will push a PR for space:event-sourcing and updated commit store etc. too :wink: