MongoDB Driver API for Node.js (original) (raw)
Class: WriteError
WriteError
An error that occurred during a BulkWrite on the server.
new WriteError()
Create a new WriteError instance
NOTE: Internal Type, do not instantiate directly
Members
codenumber
WriteError code.
errmsgstring
WriteError message.
indexnumber
WriteError original bulk operation index.
Methods
getOperation(){object}
Returns the underlying operation that caused the error