Return mongoose document as a JSON object from a function

前端 未结 0 1251
野趣味
野趣味 2020-12-13 17:17

Supposing that I have a Post schema, I want a method with this structure here:

function getPostDetails(post_id)
{
    // The function searches th         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题