bradtraversy / mern_shopping_list

Shopping List built with MERN and Redux
605 stars 436 forks source link

remove() is a deprecated function #41

Open oneil213 opened 4 years ago

oneil213 commented 4 years ago

After taking your course on youtube, I used the remove() function and I noticed all the items on the list get deleted. Then I did a little read up and saw that remove() is a deprecated function and has been replaced by deleteOne() (to delete a single document). I updated my code and it was fine. Thought you should know. Thanks!