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

The return result is wrong, when i try to remove a document. #7629

Closed
snowdream opened this issue Mar 21, 2019 · 2 comments
Closed

The return result is wrong, when i try to remove a document. #7629

snowdream opened this issue Mar 21, 2019 · 2 comments
Milestone

Comments

@snowdream
Copy link

when i try to remove a document with model.remove, the document is removed.
but the result result is wrong:
{
"n": 1,
"ok": 1
}

but not
{
"n": 1,
"ok": 1,
"deleteCount":1
}

@vkarpov15
Copy link
Collaborator

What version of MongoDB and mongoose?

@vkarpov15 vkarpov15 added the needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity label Mar 24, 2019
@snowdream
Copy link
Author

@vkarpov15
MongoDB shell version v3.4.10
"mongoose": "^5.4.19",

@vkarpov15 vkarpov15 removed the needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity label Mar 25, 2019
@vkarpov15 vkarpov15 modified the milestones: 5.4.22, 5.4.23 Mar 25, 2019
vkarpov15 added a commit that referenced this issue Apr 7, 2019
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

2 participants