I am using postgreSQLProjection to save data to my Prisma database.
To my understanding, handle: async events => {) should have all events with the same stream_id, so that one would arrive at the latest state by reducing those with the evolve function. Instead, it only ever contains the last added event.
I can confirm that my evolve function operates as expected in that it builds the correct state when executing a command.
Is there perhaps some metadata that I am not aware of that needs to be set?
Using:
"@event-driven-io/emmett": "^0.38.5",
"@event-driven-io/emmett-postgresql": "^0.38.5",