BaseProjection
API reference for BaseProjection
Class: abstract BaseProjection<TEvent>
Section titled “Class: abstract BaseProjection<TEvent>”Base class for projections that provides common functionality like event filtering and revision tracking
Type Parameters
Section titled “Type Parameters”TEvent
Section titled “TEvent”TEvent extends Event
Implements
Section titled “Implements”Projection<TEvent>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BaseProjection<
TEvent>(store):BaseProjection<TEvent>
Parameters
Section titled “Parameters”Returns
Section titled “Returns”BaseProjection<TEvent>
Properties
Section titled “Properties”supportedEventTypes
Section titled “supportedEventTypes”
abstractreadonlysupportedEventTypes:string[]
List of event types this projection can handle
Implementation of
Section titled “Implementation of”Projection.supportedEventTypes
Methods
Section titled “Methods”processEvents()
Section titled “processEvents()”processEvents(
events):Promise<void>
Process events through this projection
Parameters
Section titled “Parameters”events
Section titled “events”ReadEvent<TEvent>[]
Events to process
Returns
Section titled “Returns”Promise<void>