new BulkWriteError(message, result)
Creates a new BulkWriteError
Name | Type | Description |
---|---|---|
message |
Error | string | object |
The error message |
result |
BulkWriteResult |
The result of the bulk write operation |
Extends
Methods
-
inherited hasErrorLabel(label){boolean}
-
Checks the error to see if it has an error label
Name Type Description label
string The error label to check for
Returns:
true if the error has the provided error label