PYTHON-1656 explain() uses server default verbosity

(cherry picked from commit fe307058c8)
This commit is contained in:
Bernie Hackett 2019-03-19 10:54:36 -07:00
parent 6a917904f4
commit 713419ef4e

View File

@ -801,6 +801,13 @@ class Cursor(object):
def explain(self):
"""Returns an explain plan record for this cursor.
.. note:: Starting with MongoDB 3.2 :meth:`explain` uses
the default verbosity mode of the `explain command
<https://docs.mongodb.com/manual/reference/command/explain/>`_,
``allPlansExecution``. To use a different verbosity use
:meth:`~pymongo.database.Database.command` to run the explain
command directly.
.. mongodoc:: explain
"""
c = self.clone()