Supposing that I have a Post schema, I want a method with this structure here:
Post
function getPostDetails(post_id) { // The function searches th