Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BulkWriteResult

Hierarchy

  • BulkWriteResult

Index

Properties

deletedCount: number

Number of documents deleted.

insertedCount: number

Number of documents inserted.

insertedIds: {}

Inserted document generated Id's, hash key is the index of the originating operation

Type declaration

  • [key: number]: any
matchedCount: number

Number of documents matched for update.

modifiedCount: number

Number of documents modified.

result: BulkResult
upsertedCount: number

Number of documents upserted.

upsertedIds: {}

Upserted document generated Id's, hash key is the index of the originating operation

Type declaration

  • [key: number]: any

Accessors

  • get nInserted(): number
  • The number of inserted documents

    deprecated

    Use insertedCount instead.

    Returns number

  • get nMatched(): number
  • Number of matched documents

    deprecated

    Use matchedCount instead.

    Returns number

  • get nModified(): number
  • Number of documents updated physically on disk

    deprecated

    Use modifiedCount instead.

    Returns number

  • get nRemoved(): number
  • Number of removed documents

    deprecated

    Use deletedCount instead.

    Returns number

  • get nUpserted(): number
  • Number of upserted documents

    deprecated

    User upsertedCount instead.

    Returns number

  • get ok(): number

Methods

  • getUpsertedIdAt(index: number): undefined | Document
  • getWriteErrorAt(index: number): undefined | WriteError
  • getWriteErrorCount(): number
  • hasWriteErrors(): boolean
  • isOk(): boolean
  • toString(): string

Generated using TypeDoc