Skip to content

postgreSQLProjection handle always has events array with only last event #263

@rianzietsman

Description

@rianzietsman

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions