Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soft Delete #534

Closed
roman-right opened this issue Apr 13, 2023 Discussed in #532 · 1 comment · Fixed by #901
Closed

Soft Delete #534

roman-right opened this issue Apr 13, 2023 Discussed in #532 · 1 comment · Fixed by #901
Assignees

Comments

@roman-right
Copy link
Member

Discussed in #532

Originally posted by N0odlez April 13, 2023
Is it possible to have a Soft Delete functionality, or alternatively let me know how to add a Middleware on each database request to check if a field i.e "is_deleted" is equal to 1.

This would be useful as sometimes you dont want to actually delete the whole Document but you need to keep for auditing purposes.

@alm0ra
Copy link
Contributor

alm0ra commented Mar 23, 2024

hey @roman-right
do you work on this feature?
i am able to open a PR for adding this feature to beanie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants