Skip to content

Commit 5106973

Browse files
authoredFeb 6, 2024
DOCSP-34433 Add array brackets to dropIndex example (#6245) (#6265)
* DOCSP-34433 add array * DOCSP-34433 fix spacing
1 parent bb9f3d0 commit 5106973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎source/core/indexes/drop-index.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ method and specify an array of index names:
7777

7878
.. code-block:: javascript
7979

80-
db.<collection>.dropIndexes("<index1>", "<index2>", "<index3>")
80+
db.<collection>.dropIndexes( [ "<index1>", "<index2>", "<index3>" ] )
8181

8282
Drop All Indexes Except the ``_id`` Index
8383
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)
Please sign in to comment.