Mongoose custom virtual field return promise

后端 未结 0 615
孤独总比滥情好
孤独总比滥情好 2021-01-27 09:49

I\'m new in mongoDB, I have virtual field like this

videoSchema.virtual(\'playURL\').get(async function () {
    return await getVideoURLbyId(this.video_id, true)         


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