{"repo":"nour-karoui/mongoose-soft-delete","free":true,"listed":false,"github":"https://github.com/nour-karoui/mongoose-soft-delete","clone":"git clone https://github.com/nour-karoui/mongoose-soft-delete.git","description":"a mongoose plugin that allows you to soft delete documents and restore them (for TS & JS)","language":"TypeScript","stars":42,"topics":["mongoose-plugin","mongodb","javascript","typescript","softdelete","mongoose","soft-delete","npm-package","restore"],"license":"MIT","category":"data-pipelines","readme_excerpt":"Welcome to soft-delete-plugin-mongoose 👋 a mongoose plugin that allows you to soft delete documents and restore them in MongoDB (for JS & TS) Soft delete your MongoDB documents and restore them JS and TS 🏠 Homepage Install How It Works Javascript Version Typescript Version What's New Version 2.0.0 🎉 ⚠️ Breaking Changes: - Enhanced aggregation pipeline support with automatic soft-delete filtering - Improved query hooks for better performance and consistency New Features: - Aggregation Pipeline Support : $match and $lookup stages now automatically exclude soft-deleted documents - Enhanced Method Support : Added soft-delete aware hooks for: - distinct() - Returns only non-deleted documents - findOneAndUpdate() - Only operates on non-deleted documents - Improved Query Performance : Optimized query hooks for better database performance Migration Guide: If you were previously working around soft-delete filtering in aggregation pipelines, you can now remove those manual filters as they're handled automatically. Author 👤 Nour Github: @nour-karoui LinkedIn: @nourkaroui 🤝 Contributing Contributions, issues and feature requests are welcome! Feel free to check issues page. You can also take a look at the contributing guide. Show your support Give a STAR if this project helped you! 📝 License Copyright © 2021 Nour. This project is MIT licensed. This README was generated with by readme-md-generator","default_branch":null,"files":null,"tree":[],"storefront":"/r/nour-karoui","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nour-karoui/mongoose-soft-delete/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}