Hi
So I have done the following
fromStream(“My-123”
.when(
{
MyEvent: function(state,event)
{
linkTo(event.someProperty,event); //links to a HelloWorld-<> stream
}
}
);
what I was hoping to do is
fromCategory(“HelloWorld”)
.foreachStream()
.when(
{
MyEvent: function(state, event) {
// use event.streamId and expect it to be HelloWorld- not My-123
}
});
Is there a way of getting the current (and always correct) streamId from a projection using fromCategory and foreachStream?
In this case yes I can read from the event again, but that might not always be the case (i assume).
Thanks.