How to return an object from MongoDB

前端 未结 0 392
感情败类
感情败类 2021-02-11 02:38

I need to find all the documents to my API in Node Js with HTTP GET, but the response it\'s not an object.

My code:

app.get (\'/altas\', (req, res) => {         


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