-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manually define aggregates #74
Comments
Would it help if you knew you can declare your events or commands in an array in one file instead of in separate files? |
Didn't know that, actually :) But I'd prefer to completely opt out of the built-in structureParser instead. |
you can try to set the tree object... https://github.com/adrai/node-cqrs-domain/blob/master/lib/domain.js#L389 |
I would also find it useful to opt out of the directory scanning. Trying to use TypeScript for my project, but the structure parser only looks for .js and .json files. |
I could not find a way to define aggregates without relying on the structureLoader mechanism.
I like the idea behind it but want to do it slightly different so that I can define multiple artifacts in the same file.
Would there be a way to provide a hook/api to define an aggregate manually somehow without rewriting too much?
I was able to define events and commands manually after init on existing aggregate definitions but for aggregates I didn't find a way.
The text was updated successfully, but these errors were encountered: