So I have effectively created a single stream for a category using a projection.
Given the streams:
Foobar-1
Foobar-2
Foobar-3
Foobar-4
I can create a single stream containng all events from those streams by doing the following:
fromCategory(‘Foobar’)
.whenAny(function(s,e) {
linkTo('Foobars',e);
});
This gives me a “Foobars” stream with all events from the four streams listed above
If I want to do this across multiple categories, I am stuck. Let’s say I have the following streams:
Foobar-1
Foobar-2
Barfoo-1
Barfoo-2
How could I create a projection to capture all events across both of those two categories (but no other categories)? I was looking for a “fromCategories” function (like “fromStreams”) but couldn’t find one.
Cheers,
Callum