Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
Object Constructors and Methods

WriteResult.hasWriteError()

WriteResult.hasWriteError()

Returns true if the result of a mongo shell write method has WriteResult.writeError. Otherwise, the method returns false.

Tip

Back

WriteResult()

On this page