File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 22MongoDB\\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
2224Parameters
2325----------
@@ -54,9 +56,8 @@ Parameters
5456Return 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
6162Errors/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
You can’t perform that action at this time.
0 commit comments