prorm API Reference
    Preparing search index...

    Interface UpdateDocumentOptions

    Options accepted by updateDocument().

    interface UpdateDocumentOptions {
        upsert?: Record<string, unknown>;
        refresh?: Refresh;
        retryOnConflict?: number;
    }
    Index
    upsert?: Record<string, unknown>

    Document to insert if it doesn't already exist (upsert).

    refresh?: Refresh

    Refresh policy for making the write visible to search immediately.

    retryOnConflict?: number

    Number of times to retry on a version conflict.