How to get removed document in MongoDB?

Viewed 5869

Is it possible to get the document that was removed from MongoDB?

result = db.things.remove({_id: id})
// is there a result.removedObjects?

Thanks!

2 Answers
Related