Skip to content

singleStreamProjection

API reference for singleStreamProjection

@delta-base/toolkit


singleStreamProjection<TDoc, TEvent>(options): InlineProjectionHandler<TEvent>

Creates a single-stream inline projection. One read model document per stream. The document’s _version tracks the stream position for idempotency and catch-up.

TDoc

TEvent extends Readonly<{ data: EventData; metadata?: PlatformEventMetadata; tags?: string[]; type: string; }>

SingleStreamProjectionOptions<TDoc, TEvent>

InlineProjectionHandler<TEvent>