Open RSPaul opened 3 years ago
collection.remove({ fieldName: name }, { justOne: false }, function ()
I am using above code to delete the document from the collection, it gives no error but when check the database the same record is still there.
Its just add the following attributes to that document. I need to completely remove this document from database
{"_id":227,"_uid":227,"_dt":1614923923248,"_a":"del"}
If I do a findOne(query), it will get the first document, even if it has been deleted.
collection.remove({ fieldName: name }, { justOne: false }, function ()
I am using above code to delete the document from the collection, it gives no error but when check the database the same record is still there.
Its just add the following attributes to that document. I need to completely remove this document from database
{"_id":227,"_uid":227,"_dt":1614923923248,"_a":"del"}