Next.JS How to get latest post from mongodb?
I am building comment app. Problem I am facing is latest post/comment is on bottom. I would like to add new comment to first position. Can you please tell me how to do it? Thank you. import db from "@/utils/db";…