Docs Home → MongoDB Manual
On this page本页内容
WriteResult.hasWriteError()
Returns true if the result of a mongosh write method has WriteResult.writeError. 如果mongosh 写入方法的结果具有WriteResult.writeError,则返回true。Otherwise, the method returns false.否则,该方法返回false。
true
mongosh
WriteResult.writeError
false
WriteResult()