summaryrefslogtreecommitdiff
path: root/shell/collection.js
diff options
context:
space:
mode:
Diffstat (limited to 'shell/collection.js')
-rw-r--r--shell/collection.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/collection.js b/shell/collection.js
index 68ee03d..dfbb6a1 100644
--- a/shell/collection.js
+++ b/shell/collection.js
@@ -68,6 +68,9 @@ DBCollection.prototype.help = function () {
DBCollection.prototype.getFullName = function(){
return this._fullName;
}
+DBCollection.prototype.getMongo = function(){
+ return this._db.getMongo();
+}
DBCollection.prototype.getDB = function(){
return this._db;
}
@@ -170,8 +173,8 @@ DBCollection.prototype.insert = function( obj , _allow_dot ){
this._lastID = obj._id;
}
-DBCollection.prototype.remove = function( t ){
- this._mongo.remove( this._fullName , this._massageObject( t ) );
+DBCollection.prototype.remove = function( t , justOne ){
+ this._mongo.remove( this._fullName , this._massageObject( t ) , justOne ? true : false );
}
DBCollection.prototype.update = function( query , obj , upsert , multi ){