Recover deleted documents?

Hi @Srihari_Mamidala,

If it’s just that one document, I would just re-insert manually:

db.coll.insertOne({
  "_id" : ObjectId("64ea1ce2b1084f3d73a33001"),
  "ts" : Timestamp(1696357679, 5),
  "t" : NumberLong("3"),
  "v" : NumberLong("2"),
  "wall" : ISODate("2023-10-03T18:27:59.868Z")
})

Else the pipeline I provided above will work just fine with the right filter.

But again: DO NOT use this method to recover documents. It’s a last resort method.

Also here you are just recovering the document when it was inserted. You are not recovering the updates.

Cheers,
Maxime.