@@ -51,20 +51,22 @@ The ``explain`` results present the query plans as a tree of stages.
5151 }
5252 },
5353
54- Each stage passes its results (i.e. documents or index keys) to the
54+ Each stage passes its resulting documents or index keys to the
5555parent node. The leaf nodes access the collection or the indices. The
5656internal nodes manipulate the documents or the index keys that result
5757from the child nodes. The root node is the final stage from which
5858MongoDB derives the result set.
5959
60- Stages are descriptive of the operation; e.g.
60+ Stages are descriptive of the operation. For example:
6161
6262- ``COLLSCAN`` for a collection scan
6363
6464- ``IXSCAN`` for scanning index keys
6565
6666- ``FETCH`` for retrieving documents
6767
68+ - ``GROUP`` for grouping douments with :pipeline:`$group`
69+
6870- ``SHARD_MERGE`` for merging results from shards
6971
7072- ``SHARDING_FILTER`` for filtering out orphan documents from shards
@@ -207,6 +209,11 @@ This section shows the ``explain`` output for MongoDB 5.1 and later.
207209 instance, an ``IXSCAN`` stage will include the index bounds
208210 along with other data specific to the index scan.
209211
212+ Starting in MongoDB 5.2, MongoDB can execute :pipeline:`$group`
213+ stages using the :ref:`slot-based execution query engine
214+ <5.1-rel-notes-sbe>`. When the |sbe-short| is used for
215+ :pipeline:`$group`, this field value is ``GROUP``.
216+
210217 .. data:: explain.queryPlanner.winningPlan.queryPlan.planNodeId
211218
212219 Unique integer field that identifies each stage in the execution
@@ -217,7 +224,7 @@ This section shows the ``explain`` output for MongoDB 5.1 and later.
217224
218225.. data:: explain.queryPlanner.winningPlan.slotBasedPlan
219226
220- Document with information about the slot based query execution plan
227+ Document with information about the slot based query execution plan
221228 tree and stages.
222229
223230 .. versionadded:: 5.1
0 commit comments