Closed nanov closed 6 years ago
Hmm, this is strnage, and has nothing to do with my changes, any ideas?
This seems to "solve" the problem, which apparently happens only on node 10 because it's faster :)
As i am no redis expert by any means, does those changes make sense?
Now i really don't get it...
@adrai any ideas?
Can you revert the redis changes (must be a node 10 problem, will look at it later) Can you add something in the readme?
This update adds an externallyLoaded option to the context definition. Basically, this means that the user ( or more likely a library ) provides the structureLoader with an already defined context object which can be used directly ( a context object to which aggregates are added, to which commands are added and so on ).
This allows writing alternative/additional loaders, who can output the result in ready to use for this library. This will allow requests like this one and this one achieved fairly easy according to other logic/structure without breaking the existing logic/definitions.
This whole is done as are in a process of writing an on-top addition/library allowing a one-file aggregate definitions similar to other CQRS implementations.