prorm API Reference
    Preparing search index...

    Interface IncrementOptions

    Options for atomically adding to numeric columns, done in SQL so concurrent writers do not lose updates.

    interface IncrementOptions {
        transaction?: Transaction;
        hooks?: boolean;
        validate?: boolean;
        fields?: string[];
        skip?: string[];
        individualHooks?: boolean;
        bench?: boolean;
        model?: any;
        instances?: Model[];
        by?: number;
        where?: WhereOptions<any>;
        reload?: boolean;
    }

    Hierarchy (View Summary)

    Index
    transaction?: Transaction
    hooks?: boolean
    validate?: boolean
    fields?: string[]
    skip?: string[]
    individualHooks?: boolean
    bench?: boolean
    model?: any
    instances?: Model[]
    by?: number

    Amount to increment/decrement by (default: 1)

    where?: WhereOptions<any>

    Additional where clause for the increment/decrement operation

    reload?: boolean

    Whether to reload the instance after the operation (default: true)