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

How to implement soft deletes? #143

Closed
ShimShamSam opened this issue Feb 5, 2018 · 3 comments
Closed

How to implement soft deletes? #143

ShimShamSam opened this issue Feb 5, 2018 · 3 comments

Comments

@ShimShamSam
Copy link

How would one go about making the remove() operation set a deleted_at column instead of doing an actual delete?

@daffl
Copy link
Member

daffl commented Feb 5, 2018

Have a look at the softDelete hook

@daffl daffl closed this as completed Feb 7, 2018
@Ajamuar
Copy link

Ajamuar commented May 3, 2019

I am unable to make soft delete work even though I have placed the hooks exactly as specified in the examples. Can I have a more thorough example?

@fahim525
Copy link

@daffl
I am using softDelete2() method for soft delete. It works fine.
const { softDelete2 } = require('feathers-hooks-common');
It used remove hooks method, Now I want to delete the record permanently. How may I achieved this ?
Thank you.

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

No branches or pull requests

4 participants