Closed wiegell closed 10 months ago
It seems the javascript package has a field for the current stream revision when doing a read:
// From: https://www.eventstore.com/blog/keep-your-streams-short-temporal-modelling-for-fast-reads-and-optimal-data-retention export async function getStreamRevisionOfTheFirstEvent( eventStore: EventStoreDBClient, streamName: string ): Promise<bigint> { const firstEvent = ( await readFromStream(eventStore, streamName, { maxCount: 1, direction: FORWARDS, fromRevision: START, }) )[0]; return firstEvent.streamRevision; }
The RecordedEvent struct does not have a stream revision, but only EventNumber. Can those be used interchangeably? If so, it could be better documented IMO.
RecordedEvent
EventNumber
@wiegell Yes they are I agree this should be amended.
It seems the javascript package has a field for the current stream revision when doing a read:
The
RecordedEvent
struct does not have a stream revision, but onlyEventNumber
. Can those be used interchangeably? If so, it could be better documented IMO.