fromCategory("Order")
.foreachStream()
.when({
$init: function() {
return { count: 0 }
},
"OrderCreated": function(state, event) {
emit('newOrders', 'order', { 'orderReference' : '1' })
}
})
And for love nor money I could not get this to work.
In the end this answer steered me: you have to config EventStore not only to run projections but also to start the standard projections.
EventStore.ClusterNode.exe --run-projections=all --start-standard-projections=true
No comments:
Post a Comment