Class: MongoWriteConcernError

MongoWriteConcernError

An error thrown when the server reports a writeConcernError

new MongoWriteConcernError(message, result)

Name Type Description
message Error | string | object

The error message

result object

The result document (provided if ok: 1)

Properties:
Name Type Argument Description
message string

The error message

result object <optional>

The result document (provided if ok: 1)