Hi everybody…
It seems I’m the first one to post here…
I’m trying to use projections to make a stream of streams as explained by Greg in his presentation at skillsmatter.
The sample code showed on the slide was not uptodate (using _ in js function names) and I tried to get something working like this :
fromAll().whenAny(
function(state, event) {
if (event.streamId.indexOf(‘InventoryItem/’) == 0)
linkTo(‘InventoryItems’, event);
return state;
}
);
The goal here is to find all events saved to streams named InventoryItem/guid and merge them in a InventoryItems stream.
The function is accepted by the EventStore, but I get a error:
No yet Computed
when I try to access the InventoryItems stream using the ClientApi…
What did I miss ?
jeremie / thinkbeforecoding