Limited Restoration of Deleted Documents in MongoDB
There is no built in way to un-delete documents that you have removed with MongoDB, but if you are running in Replica Set mode you have an oplog, and that means you may have options open to you (depending on how big the oplog is and how long ago you created/updated the documents in question).
This question (how can I restore documents I recently removed) was asked on StackOverflow, and I wrote up the answer with a very basic example to illustrate how this can be done:
Written by Adam Comerford
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mongodb
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#