getVersion

open fun getVersion(aggregateId: AggregateId): Mono<Int>

Gets the version of the latest snapshot for the specified aggregate. Returns UNINITIALIZED_VERSION if no snapshot exists.

Return

a Mono emitting the version

Parameters

aggregateId

the ID of the aggregate