Skip to content

Commit fe14bb6

Browse files
committed
cherry fix
1 parent b3c3a87 commit fe14bb6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/fundamentals/indexes.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,19 @@ parameter. The ``listIndexes()`` method returns an object of type
285285
The following code uses the ``listIndexes()`` method to list all the
286286
indexes in a collection:
287287

288+
List Indexes
289+
------------
290+
291+
You can use the ``listIndexes()`` method to list all of the indexes for
292+
a collection. The `listIndexes()
293+
<{+api+}/classes/Collection.html#listIndexes>`__ method takes an optional
294+
`ListIndexesOptions <{+api+}/interfaces/ListIndexesOptions.html>`__
295+
parameter. The ``listIndexes()`` method returns an object of type
296+
`ListIndexesCursor <{+api+}/classes/ListIndexesCursor.html>`__.
297+
298+
The following code uses the ``listIndexes()`` method to list all the
299+
indexes in a collection:
300+
288301
.. literalinclude:: /code-snippets/indexes/listIndexes.js
289302
:language: js
290303
:start-after: start-listIndexes-example

0 commit comments

Comments
 (0)