Google News
logo
MongoDB - Quiz(MCQ)
In the mongo shell, you can use the ______ method to return a list of the indexes on a collection.
A)
getretIndexes()
B)
getIndexes()
C)
getallIndexes()
D)
None of the above

Correct Answer :   getIndexes()


Explanation : When performing maintenance you may want to check which indexes exist on a collection.

Advertisement