Return the result of an asynchronous promise in a function

前端 未结 0 895
死守一世寂寞
死守一世寂寞 2021-01-02 00:19

How can get the value of this promise in a async-await function for await result? Thanks

Costi.find({utente: req.user.id}) 
          .then(costi => {              


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