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.
This is useful if e.g. you have a stream version outside the event. For example:
i.e. add a function that maps from view V to V that allows you to perform "changes" like descriped above.