Tuesday, June 16, 2015

Show all indexes in MongoDB

To show all indexes in MongoDB,

you can use the following command:

db.someCollection.getIndexes()

Reference:
http://docs.mongodb.org/manual/tutorial/list-indexes/

No comments:

Post a Comment