screeps-api
    Preparing search index...

    Interface ScreepsDbUpsertResult

    MongoDB result output from an upsert operation

    interface ScreepsDbUpsertResult {
        n: number;
        nModified: number;
        ok: 1;
        upserted: { _id?: string; index: number }[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    n: number

    Number of records matched by the request parameters

    nModified: number

    Number of records that were modified. For a single-record update: 1 if the record was updated; 0 if it was already in the target state

    ok: 1

    If an error is not raised, this will always be 1 to indicate success

    upserted: { _id?: string; index: number }[]