singleStreamProjection
API reference for singleStreamProjection
Function: singleStreamProjection()
Section titled “Function: singleStreamProjection()”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.
Type Parameters
Section titled “Type Parameters”TDoc
TEvent
Section titled “TEvent”TEvent extends Readonly<{ data: EventData; metadata?: PlatformEventMetadata; tags?: string[]; type: string; }>
Parameters
Section titled “Parameters”options
Section titled “options”SingleStreamProjectionOptions<TDoc, TEvent>
Returns
Section titled “Returns”InlineProjectionHandler<TEvent>