Member Junction
    Preparing search index...

    Interface CachedRunViewResult

    Return type for GetRunViewResult and ApplyDifferentialUpdate. Includes rowCount (derived from results.length) and totalRowCount (from the database).

    interface CachedRunViewResult {
        aggregateResults?: AggregateResult[];
        maxUpdatedAt: string;
        providerInternalScaffolding?: boolean;
        results: unknown[];
        rowCount: number;
        schemaHash?: string;
        totalRowCount?: number;
    }
    Index

    Properties

    aggregateResults?: AggregateResult[]

    Cached aggregate results, if aggregates were requested

    maxUpdatedAt: string

    The maximum __mj_UpdatedAt timestamp from the results

    providerInternalScaffolding?: boolean

    Surfaced from the stored payload so in-place maintenance can carry the freeze exemption forward. See CachedRunViewData.providerInternalScaffolding.

    results: unknown[]

    The cached result rows — shared and deep-frozen; see CachedRunViewData.results. Callers that need to transform rows (e.g. GraphQL transport field renaming) must map onto copies: results.map(r => ({ ...r })).

    rowCount: number

    Row count - derived from results.length

    schemaHash?: string

    Schema fingerprint captured when these rows were cached, surfaced from the stored payload so in-place maintenance can carry it FORWARD when rewriting the slot (B38). Without it the rewrite drops the hash, and isSchemaStaleCacheEntry short-circuits on a missing hash — permanently disabling post-migration drift detection for that slot.

    totalRowCount?: number

    Total row count from the database — may differ from rowCount for paginated queries