Class AggregateFactory

Hierarchy

  • AggregateFactory

Constructors

Properties

Methods

Constructors

Properties

cache: ICache
eventSource: IEventSource

Methods

  • Initialize a new instance of an aggregate based on the aggregate type and streamId. Will read the event store for all events matching the parameters and apply them to the aggregate in order.

    Type Parameters

    Parameters

    • streamId: string
    • Aggregate: ClassConstructor<TAgg>

      Constructor for the aggregate

    Returns Promise<TAgg>

Generated using TypeDoc