-
Type: Task
-
Resolution: Won't Do
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Component/s: Shell
-
None
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