diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-01-29 15:58:54 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-01-29 15:58:54 -0500 |
commit | 4a01d610adee3412673a8326c4fbe5261e85db2b (patch) | |
tree | bf279204580333b78df5f0b292992a93848c6bc2 /shell/collection.js | |
parent | bf904dc9ecd28674cd4d90ad9a1c7e239724c4a1 (diff) | |
download | mongo-4a01d610adee3412673a8326c4fbe5261e85db2b.tar.gz |
$where fix
Diffstat (limited to 'shell/collection.js')
-rw-r--r-- | shell/collection.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/collection.js b/shell/collection.js index e679bad4d47..515950f178b 100644 --- a/shell/collection.js +++ b/shell/collection.js @@ -71,7 +71,7 @@ DBCollection.prototype._massageObject = function( q ){ if ( q.length == 24 ) return { _id : q }; - throw "don't know how to handle string [" + q + "]"; + return { $where : q }; } throw "don't know how to massage : " + type; |