Meldbase TypeScript API
    Preparing search index...

    Interface RemoteLiveQuery<T>

    Holds a compiled remote query that can fetch pages or subscribe to changing results.

    interface RemoteLiveQuery<T extends Document> {
        collection: string;
        mode: "remote";
        spec: QuerySpec;
        fetch(options?: { signal?: AbortSignal }): Promise<T[]>;
        fetchPage(options?: { signal?: AbortSignal }): Promise<PageResult<T>>;
        subscribe(
            listener: SnapshotListener<T>,
            options?: SubscribeOptions,
        ): Unsubscribe;
    }

    Type Parameters

    Index
    collection: string
    mode: "remote" = ...
    spec: QuerySpec