MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / upserted_count

Method upserted_count

pymongo/results.py:254–257  ·  view source on GitHub ↗

The number of documents upserted.

(self)

Source from the content-addressed store, hash-verified

252
253 @property
254 def upserted_count(self) -> int:
255 """The number of documents upserted."""
256 self._raise_if_unacknowledged("upserted_count")
257 return cast(int, self.__bulk_api_result.get("nUpserted"))
258
259
260class BulkWriteResult(_BulkWriteResultBase):

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected