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

Method matched_count

pymongo/results.py:146–152  ·  view source on GitHub ↗

The number of documents matched for this update.

(self)

Source from the content-addressed store, hash-verified

144
145 @property
146 def matched_count(self) -> int:
147 """The number of documents matched for this update."""
148 self._raise_if_unacknowledged("matched_count")
149 assert self.__raw_result is not None
150 if not self.__in_client_bulk and self.upserted_id is not None:
151 return 0
152 return self.__raw_result.get("n", 0)
153
154 @property
155 def modified_count(self) -> int:

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected