Skip to content

Commit e0897cf

Browse files
committed
DOCSP-46718 Enumerating Collections Source Link 404
1 parent 343f339 commit e0897cf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

source/reference/method/MongoDBCollection-listIndexes.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
MongoDB\\Collection::listIndexes()
33
==================================
44

5+
.. default-domain:: mongodb
6+
57
.. contents:: On this page
68
:local:
79
:backlinks: none
@@ -17,7 +19,7 @@ Definition
1719

1820
.. code-block:: php
1921

20-
function listIndexes(array $options = []): Iterator
22+
function listIndexes(array $options = []): MongoDB\Model\IndexInfoIterator
2123

2224
Parameters
2325
----------
@@ -54,9 +56,8 @@ Parameters
5456
Return Values
5557
-------------
5658

57-
An :php:`Iterator <manual/en/class.iterator.php>`
58-
instance, which provides a :phpclass:`MongoDB\Model\IndexInfo` object
59-
for each index for the collection.
59+
A traversable :phpclass:`MongoDB\Model\IndexInfoIterator`, which contains a
60+
:phpclass:`MongoDB\Model\IndexInfo` object for each index for the collection.
6061

6162
Errors/Exceptions
6263
-----------------
@@ -131,6 +132,6 @@ See Also
131132
- :manual:`listIndexes </reference/command/listIndexes>` command reference in
132133
the MongoDB manual
133134
- :manual:`Index documentation </core/indexes>` in the MongoDB manual
134-
- `Index Management
135-
<https://github.com/mongodb/specifications/blob/master/source/index-management/index-management.md>`_
135+
- `Enumerating Collections
136+
<https://github.com/mongodb/specifications/blob/master/source/enumerate-collections/enumerate-collections.md>`_
136137
specification

0 commit comments

Comments
 (0)