The number of documents matched for this update.
(self)
| 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: |
nothing calls this directly
no test coverage detected