Open TracyChacon opened 1 year ago
userController.js
productController.js
the remove() function is now deprecated and documentation/ mongodb forum advise the use of deleteOne() or deleteMany()
remove()
deleteOne()
deleteMany()
The proposed code change makes it so that the app doesn't break.
Change any invocations ( in userController.js/productController.js in the backend) of :
To :
DETAILS
userController.js
/productController.js
ISSUE
the
remove()
function is now deprecated and documentation/ mongodb forum advise the use ofdeleteOne()
ordeleteMany()
PROPOSED CHANGE
The proposed code change makes it so that the app doesn't break.
Change any invocations ( in
userController.js
/productController.js
in the backend) of :To :