Details
-
Task
-
Resolution: Won't Do
-
Trivial - P5
-
None
-
None
Description
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