New in version 3.0.0.
Returns information about the indexes on the specified collection. Specifically, the command returns a document that contains information with which to create a cursor to the index information. Index information includes the keys and options used to create the index. The
mongoshell provides the
The command has the following form:
Field Type Description
string The name of the collection.
The user executing the command requires either
find privileges on the
system.indexes collection or the
listIndexes privilege action. At a minimum, the
read built-in role provide the requisite permissions.
A document that contains information with which to create a cursor to index information. The cursor information includes the cursor id, the full namespace for the command, as well as the first batch of results. Index information includes the keys and options used to create the index. For information on the keys and index options, see