This is a code repository for the corresponding video tutorial. Using React, Node.js, Express & MongoDB you'll learn how to build a Full Stack MERN Application - from start to finish. The App is called "Memories" and it is a simple social media app that allows users to post interesting events that happened in their lives.
TypeError: PostMessage.findByIdAndRemove is not a function
Source:
Cause: As of Mongoose version 8 there is no more .findByIdAndRemove() in its place you will have to use .findByIdAndDelete() [Model.findByIdAndDelete()](https://mongoosejs.com/docs/api/model.html#Model.findByIdAndDelete())
Fix: use findByIdAndDelete()