This version of the documentation is archived and no longer
supported. View the current documentation to learn how to
upgrade your version of MongoDB.
Definition
WriteResult.hasWriteError()Returns
trueif the result of amongoshell write method hasWriteResult.writeError. Otherwise, the method returnsfalse.