|
There are 3 shell helpers.
> db.test.getIndexSpecs
|
function (){
|
return this.getDB().getCollection( "system.indexes" ).find( { ns : this.getFullName() } ).toArray();
|
}
|
> db.test.getIndexes
|
function (){
|
return this.getDB().getCollection( "system.indexes" ).find( { ns : this.getFullName() } ).toArray();
|
}
|
> db.test.getIndices
|
function (){
|
return this.getDB().getCollection( "system.indexes" ).find( { ns : this.getFullName() } ).toArray();
|
}
|
The most likely least used is getIndexSpecs()
This is useful when autocompleting this functions
|