A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mongodb.github.io/node-mongodb-native/3.6/api/BulkWriteResult.html below:

Class: BulkWriteResult

Class: BulkWriteResult

The result of a bulk write.

Create a new BulkWriteResult instance

NOTE: Internal Type, do not instantiate directly

Members

deletedCount

Number of documents deleted.

insertedCount

Number of documents inserted.

insertedIds

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

matchedCount

Number of documents matched for update.

modifiedCount

Number of documents modified.

nInsertednumber

The number of inserted documents

nMatchednumber

Number of matched documents

nModifiednumber

Number of documents updated physically on disk

nRemovednumber

Number of removed documents

nUpsertednumber

Number of upserted documents

okboolean

Evaluates to true if the bulk operation correctly executes

upsertedCount

Number of documents upserted.

upsertedIds

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

Methods
getInsertedIds(){Array.<object>}

Returns an array of all inserted ids

Retrieve lastOp if available

Returns raw internal result

getUpsertedIdAt(index){object}

Returns the upserted id at the given index

Name Type Description index number

the number of the upserted id to return, returns undefined if no result for passed in index

getUpsertedIds(){Array.<object>}

Returns an array of all upserted ids

Retrieve the write concern error if any

Returns a specific write error object

Name Type Description index number

of the write error to return, returns null if there is no result for passed in index

getWriteErrorCount(){number}

Returns the number of write errors from the bulk operation

Retrieve all write errors

hasWriteErrors(){boolean}

Returns true if the bulk operation contains a write error


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4