question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there any way I can populate deleted collection?

See original GitHub issue

I am using overrideMethods: true, because of that it is not populating that collection.

I am storing all activity logs, so in future I would like to go through all activities that affected any collections, so at that time I will need to populate any collections that got deleted by someone.

Is there any way to do that?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
crossRTcommented, Oct 30, 2017

Hi @dsanel, ya, but when we populate with mongoose, it doesn’t retrieve the deleted record. For example:

Vehicle.findOne({ _id: vehicleId})
    .populate('vehicleTypeId')
    .then((vehicle) => {})
...

If the vehicleType is deleted, then it won’t included in the vehicle.

3reactions
bhargav-saecommented, Nov 2, 2017

@dsanel I am interested to investigate and submit a PR if possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Collection deleted - Shopify Help Center
Deleted collections can't be restored. Create a test collection instead of deleting a real collection. API details. The Collection deleted trigger allows ...
Read more >
Edit collections - Android - Currents Help - Google Support
You can delete a collection at any time, but you can't undo a deletion. When you delete a collection, all the posts you...
Read more >
Restore deleted items from the site collection recycle bin
A SharePoint site collection administrator can view and restore deleted items from the site collection Recycle Bin to their original locations. If an...
Read more >
Restore a deleted collection? - Zotero Forums
You have two options, I think: 1. On computer B, create reports from the collection and subcollection and use those to (manually) recreate...
Read more >
Content Manager: Restoring a Deleted Collection | Help Center
Retrieve content from a deleted collection by restoring it in the Content Manager. You can only retrieve content within 7 days of removing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found