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

Method explain

pymongo/asynchronous/cursor.py:1211–1217  ·  view source on GitHub ↗

Returns an explain plan record for this cursor. .. seealso:: The MongoDB documentation on `explain `_.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

AsyncCursorClass · 0.85
_cloneMethod · 0.45
explainMethod · 0.45

Tested by

no test coverage detected