Skip to content

Add support for mapping "view" before saving to DB for materialized views #191

@johanhaleby

Description

@johanhaleby

This is useful if e.g. you have a stream version outside the event. For example:

val event = ...
val streamVersion = 123L // Out of band

materializedSearchView.update(event) { viewBeforeSave ->
     viewBeforeSave.copy(streamVersion = streamVersion)
}

i.e. add a function that maps from view V to V that allows you to perform "changes" like descriped above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions