WriteResult.hasWriteError()
On this page本页内容
Definition定义
WriteResult.hasWriteError()
-
Returns如果true
if the result of amongosh
write method hasWriteResult.writeError
. Otherwise, the method returnsfalse
.mongosh
写入方法的结果具有WriteResult.writeError
,则返回true
。否则,该方法将返回false
。
Tip