Interface QueryResult<T>

A result of a query operation.

interface QueryResult<T> {
    items: AsyncIterableIterator<T>;
    toArray(): Promise<T[]>;
    total: Promise<number>;
}

Type Parameters

  • T

Properties

Methods

Properties

items: AsyncIterableIterator<T>

Async iterator over the result items.

total: Promise<number>

Full amount of items matching the query. This may be higher as the returned items.

Methods

  • Provides convenient access to the items as array.

    Returns Promise<T[]>

Generated using TypeDoc