I am running a projection on my eventstoreDB trying to create my project with Event sourcing. This is my projection, running with no errors: (the project is made with node and ts)
options({
resultStreamName: "userData",
$includeLinks: true,
reorderEvents: false,
processingLag: 500
})
fromStream('user')
.when({
$init: function() {
return {
cash: 0
}
},
trans: function(state, event) {
state.cash += event.body.cash;
}
})
.transformBy(function(state) {
state.cash = 10;
})
.outputState()
for some reason, it seems like the result won't be uploaded to the resultstreamName as specified.
I see that the projection ( called user), is run:
my projection "test" with cash info:
How can I make the result projection to be stored in the stream userData?

