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

Type Parameters

  • T extends unknown

Type declaration

  • Optionalargs?: any[]

    The args array this query was created with. This is mostly for debugging

  • 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