mongodb connection is not getting resolved in nodejs

前端 未结 0 1344
滥情空心
滥情空心 2020-12-13 06:28

I am trying to code refactor to ensure that mongodb instance is instantiated only once.

const dbs = async () => await new Promise((resolve, reject) => {         


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