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

What is difference between deleteOne and findOneAndDelete? #89

Open
greenfrog82 opened this issue Dec 14, 2016 · 0 comments
Open

What is difference between deleteOne and findOneAndDelete? #89

greenfrog82 opened this issue Dec 14, 2016 · 0 comments

Comments

@greenfrog82
Copy link

What is difference between deleteOne and findOneAndDelete? When I use these method, return count of deleted item and delete. That it.
When I delete item, I wanna get deleted Item. So I use findOneAndDelete but this method doesn't return count of deleted item rather than deleted item.
How can I get deleted item? and What is difference between deleteOne and findOneAndDelete?

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

1 participant