Is your feature request related to a problem? Please describe.
Currently, we are using an array inside our user Schema to store posts that are made by the user. This however is not an ideal solution. We want to use mongoose's populate method to store posts for a given user. This will provide efficiency in deleting and adding posts for a given user and also manage likes and dislikes for the post.
Describe the solution you'd like
Modify the schema to introduce a new schema for posts. The new schema should link to the _id of the user for which it was created. Similarly the user should have an array of _id(s) for posts. We need to modify the end points for fetching and deleting the posts accordingly