daypaio / nestjs-eventstore

Eventstore connector for nestjs
MIT License
54 stars 21 forks source link

Configure/import EventStoreCqrsModule on a per module basis #27

Open clarkstachio opened 4 years ago

clarkstachio commented 4 years ago

The documentation shows how to import and configure EventStoreCqrsModule into the app.module via the forRoot method, however, there does not seem to be a way to import this on a per module basis (ie with a forFeature method).

I am new to both NestJs and EventStore (as well as TS) so I may be missing something. Is this functionality available? Is this use case something that is in the works?

jonasgrosch-daypaio commented 4 years ago

sadly the NestJS CQRS module, on which this module build upon does not support this usecase because it injects the EventBus globally and not per feature.