sergeyksv / tingodb

Embedded Node.js database upward compatible with MongoDB
www.tingodb.com
1.16k stars 105 forks source link

Remove function is not deleting the record from collection. #187

Open RSPaul opened 3 years ago

RSPaul commented 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"}

image

sirber commented 3 years ago

If I do a findOne(query), it will get the first document, even if it has been deleted.