Interface LazyPendingCursorOperationReturn

interface LazyPendingCursorOperationReturn {
    collection: Collection;
    ditto: Ditto;
    documents: Document[];
    exec: ((params) => Promise<void>);
    liveQuery: LiveQuery;
    liveQueryEvent: LiveQueryEvent;
    subscription: Subscription;
}

Properties

collection: Collection

Current Ditto collection instance.

ditto: Ditto

The initialized Ditto instance if one could be found for the provided path.

documents: Document[]

The set of documents found for the current query.

exec: ((params) => Promise<void>)

Function used to trigger a query on a collection

Type declaration

    • (params): Promise<void>
    • Parameters

      Returns Promise<void>

liveQuery: LiveQuery

Currently active live query.

liveQueryEvent: LiveQueryEvent

The last LiveQueryEvent received by the query observer.

subscription: Subscription

Currently active subscription.