projections
API reference for projections
Variable: projections
Section titled “Variable: projections”
constprojections:object
Helper namespace for projection registration
Type Declaration
Section titled “Type Declaration”inline()
Section titled “inline()”inline(
items,config?):InlineProjectionRegistration
Register projections for inline (synchronous) execution.
Accepts:
- Declarative projections (from
singleStreamProjection/multiStreamProjection) InlineProjection<TEvent>instances (with optionallastProcessedPosition/catchUp)- Plain
Projection<TEvent>instances (no catch-up)
Parameters
Section titled “Parameters”(InlineProjectionHandler<Readonly<{ data: EventData; metadata?: PlatformEventMetadata; tags?: string[]; type: string; }>> | InlineProjection<Readonly<{ data: EventData; metadata?: PlatformEventMetadata; tags?: string[]; type: string; }>> | Projection<Readonly<{ data: EventData; metadata?: PlatformEventMetadata; tags?: string[]; type: string; }>>)[]
Array of projections to register
config?
Section titled “config?”Optional error handling configuration
Returns
Section titled “Returns”InlineProjectionRegistration for use with getEventStore()