Learn the "why" behind slow queries and how to fix them in our 2-Part Webinar.
Register now >
Docs Menu
Docs Home
/ /
Object Constructors and Methods

WriteResult.hasWriteConcernError()

WriteResult.hasWriteConcernError()

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

Tip

Back

WriteResult.hasWriteError()

On this page