Returns an explain plan record for this cursor. .. seealso:: The MongoDB documentation on `explain `_.
(self)
| 1205 | return cast(List["_DocumentOut"], raw_response) |
| 1206 | |
| 1207 | def explain(self) -> _DocumentType: |
| 1208 | """Returns an explain plan record for this cursor. |
| 1209 | |
| 1210 | .. seealso:: The MongoDB documentation on `explain <https://dochub.mongodb.org/core/explain>`_. |
| 1211 | """ |
| 1212 | clone = self._clone(deepcopy=True, base=Cursor(self.collection)) |
| 1213 | return clone.explain() |
| 1214 | |
| 1215 | def __getitem__(self, index: Any) -> NoReturn: |
| 1216 | raise InvalidOperation("Cannot call __getitem__ on RawBatchCursor") |