We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db628d9 commit a6b2d85Copy full SHA for a6b2d85
src/UpdateResult.php
@@ -49,6 +49,19 @@ public function getModifiedCount()
49
return $this->writeResult->getModifiedCount();
50
}
51
52
+ /**
53
+ * Return the number of documents that were upserted.
54
+ *
55
+ * This value is undefined if the write was not acknowledged.
56
57
+ * @see UpdateResult::isAcknowledged()
58
+ * @return integer
59
+ */
60
+ public function getUpsertedCount()
61
+ {
62
+ return $this->writeResult->getUpsertedCount();
63
+ }
64
+
65
/**
66
* Return the ID of the document inserted by an upsert operation.
67
*
0 commit comments