Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major - P3
-
None
-
mongodb version 3.2
*Location*: https://docs.mongodb.org/v3.0/tutorial/remove-documents/
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
*Referrer*: https://docs.mongodb.org/manual/tutorial/remove-documents/
*Screen Resolution*: 1600 x 900
*repo*: docs
*source*: tutorial/remove-documents
mongodb version 3.2 *Location*: https://docs.mongodb.org/v3.0/tutorial/remove-documents/ *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36 *Referrer*: https://docs.mongodb.org/manual/tutorial/remove-documents/ *Screen Resolution*: 1600 x 900 *repo*: docs *source*: tutorial/remove-documents
Description
var MongoClient1 = require('mongodb').MongoClient; |
MongoClient1.connect("mongodb://localhost:27017/test", function(err, db) { |
if(err)console.log("err",err) |
//this is not working but deleting all records
|
db.collection(colName).removeOne({ "del" : "true" },1,function(){ |
db.close()
|
})
|
//this is working good and deleting only first record.
|
db.collection(colName).removeOne({ "del" : "true" },function(){ |
db.close()
|
})
|