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

E-Commerce API - Issue with deprecation remove to deleteOne instead #83

Open
aradradev opened this issue Aug 22, 2024 · 0 comments
Open

Comments

@aradradev
Copy link

Prerequisites

  • [x ] I have written a descriptive issue title

Mongoose version
^8.5.3

Node.js version
20.x

Operating system
Linux

Operating system version (i.e. 24.04, 11.3, 10)
Linux 6.8.7-arch1-

Issue
I am currently in the E-commerce API module, and specifically in the remove all reviews and Aggregation pipeline setup. The current version I am using, remove() is deprecated. And this is How I dealt with remove all reviews:

remove all reviews:
Product js
productController js (1)

Aggregation pipeline in order to trigger the remove hook with deleteOne:
reviewController js
Review js

@aradradev aradradev changed the title E-Commerce API E-Commerce API - Issue with deprecation remove to deleteOne instead Aug 22, 2024
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