multiStreamProjection
API reference for multiStreamProjection
Function: multiStreamProjection()
Section titled “Function: multiStreamProjection()”multiStreamProjection<
TDoc,TEvent>(options):InlineProjectionHandler<TEvent>
Creates a multi-stream inline projection. One document aggregated from events across multiple streams. Uses globalPosition for cursor tracking.
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”MultiStreamProjectionOptions<TDoc, TEvent>
Returns
Section titled “Returns”InlineProjectionHandler<TEvent>