map.apps Bundle APIs 4.20.2
    Preparing search index...

    Interface QueryResult<T>

    A result of a query operation.

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

    Type Parameters

    • T
    Index

    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[]>