This commit is contained in:
Baris Soner Usakli
2014-01-03 21:33:41 -05:00
parent 0edd6985ec
commit f21a98f37f
8 changed files with 135 additions and 35 deletions

View File

@@ -738,6 +738,21 @@
});
}
module.listRemoveAll = function(key, value, callback) {
db.collection('objects').update({_key: key }, { $pull: { array: value } }, function(err, result) {
if(err) {
if(callback) {
return callback(err);
}
return;
}
if(callback) {
callback(null, result);
}
});
}
module.getListRange = function(key, start, stop, callback) {
if(stop === -1) {