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
  • get nMatched(): number
  • get nModified(): number
  • get nRemoved(): number
  • get nUpserted(): 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