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

Method deleted_count

pymongo/results.py:245–251  ·  view source on GitHub ↗

The number of documents deleted.

(self)

Source from the content-addressed store, hash-verified

243
244 @property
245 def deleted_count(self) -> int:
246 """The number of documents deleted."""
247 self._raise_if_unacknowledged("deleted_count")
248 if "nRemoved" in self.__bulk_api_result:
249 return cast(int, self.__bulk_api_result.get("nRemoved"))
250 else:
251 return cast(int, self.__bulk_api_result.get("nDeleted"))
252
253 @property
254 def upserted_count(self) -> int:

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected