WriteResult.hasWriteError()
On this page
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoDB server.
Definition
WriteResult.hasWriteError()
Returns
true
if the result of amongosh
write method hasWriteResult.writeError
. Otherwise, the method returnsfalse
.