Docs HomeMongoDB Manual

WriteResult.hasWriteError()

On this page

Definition定义

WriteResult.hasWriteError()

Returns true if the result of a mongosh write method has WriteResult.writeError. 如果mongosh写入方法的结果具有WriteResult.writeError,则返回trueOtherwise, the method returns false.否则,该方法将返回false

Tip

See also: 另请参阅:

WriteResult()