mingo
    Preparing search index...

    Interface UpdateResult

    Result of update operation

    interface UpdateResult {
        matchedCount: number;
        modifiedCount: number;
        modifiedFields?: string[];
        modifiedIndex?: number;
    }
    Index

    Properties

    matchedCount: number

    Count of objects that matched filter.

    modifiedCount: number

    Count of objects modified.

    modifiedFields?: string[]

    Array of modified fields of single object. Available only for updateOne.

    modifiedIndex?: number

    Index of the modified object within the collection. Available only for updateOne.