Skip to content

AppendToStreamResult

API reference for AppendToStreamResult

@delta-base/server


Type Alias: AppendToStreamResult<StreamVersion>

Section titled “Type Alias: AppendToStreamResult<StreamVersion>”

AppendToStreamResult<StreamVersion> = object

Result of appending events to a stream

StreamVersion = StreamPosition

createdNewStream: boolean


optional events: ReadEvent<Event>[]

Appended events with full server-assigned metadata. Optional at the interface level for backward compatibility with custom EventStore implementations. The DeltaBase HTTP API and InMemoryEventStore always populate this field.


nextExpectedStreamVersion: StreamVersion