Query<T>: {
    key: string;
    run: ((events: EventStore, store: QueryStore) => Observable<T>);
}

Type Parameters

  • T extends unknown

Type declaration

  • key: string

    A unique key for this query. this is used to detect duplicate queries

  • run: ((events: EventStore, store: QueryStore) => Observable<T>)

    The meat of the query, this should return an Observables that subscribes to the eventStore in some way