juicycleff / nestjs-event-store

NestJS CQRS module for EventStore.org. It requires @nestjs/cqrs
https://xraph.com
MIT License
199 stars 29 forks source link

How to store events in the ES right? #16

Open SMMMN opened 4 years ago

SMMMN commented 4 years ago

Hi I use your repository to store events in the ES. My question: I thought that the events in the ES should look like '0@user-user100'. But when I save the event in the ES it looks like '0@user'. How can I make sure that the userId is part of the stream so that I have all events for one user in one stream?

I think it has something to do with the Publish() method?

image