prorm API Reference
    Preparing search index...

    Interface BatchResult<T>

    Result of a batch operation

    interface BatchResult<T = any> {
        success: T[];
        failed: { record: T; error: Error }[];
        total: number;
        chunkSize: number;
        batches: number;
        duration: number;
    }

    Type Parameters

    • T = any
    Index
    success: T[]

    Array of successfully processed records

    failed: { record: T; error: Error }[]

    Array of failed records with error info

    total: number

    Total number of records processed

    chunkSize: number

    Number of records per batch

    batches: number

    Total number of batches

    duration: number

    Total duration in milliseconds