diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-05-19 10:54:06 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-05-19 10:54:06 -0400 |
commit | c60cf5c1c88fcc4b1942d8d3b72c7495daf2f906 (patch) | |
tree | 8895bfeef824d639fa72b69554e3f96b6d2e8de2 | |
parent | b773d2c965a3965fc470b0d1cac3f52346f80b3a (diff) | |
download | mongo-c60cf5c1c88fcc4b1942d8d3b72c7495daf2f906.tar.gz |
cleaning index accessor methods
-rw-r--r-- | shell/collection.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/collection.js b/shell/collection.js index 4bfe06b3307..12eba186f7c 100644 --- a/shell/collection.js +++ b/shell/collection.js @@ -245,11 +245,12 @@ DBCollection.prototype.getIndexes = function(){ } DBCollection.prototype.getIndices = DBCollection.prototype.getIndexes; +DBCollection.prototype.getIndexSpecs = DBCollection.prototype.getIndexes; -DBCollection.prototype.getIndexSpecs = function(){ +DBCollection.prototype.getIndexKeys = function(){ return this.getIndexes().map( function(i){ - return i; + return i.key; } ); } |