Create a new BatchWriteResult instance (INTERNAL TYPE, do not instantiate directly)
- class BatchWriteResult()¶
Arguments:
- batchResult (object) – internal data structure with results.
Returns: batchwriteresult a BatchWriteResult instance
| Property |
|---|
| ok {boolean} did bulk operation correctly execute |
| nInserted {number} number of inserted documents |
| nUpdated {number} number of documents updated logically |
| nUpserted {number} number of upserted documents |
| nModified {number} number of documents updated physically on disk |
| nRemoved {number} number of removed documents |
Return the upserted id at position x
| Arguments: |
|
|---|---|
| Returns: | array |
Returns true if the bulk operation contains a write error
| Returns: | boolean |
|---|