Soy nuevo en mongoDB, tengo un campo virtual como este
videoSchema.virtual('playURL').get(async function () { return await getVideoURLbyId(this.video_id, true) .then(res => res) }) videoSchema.set('toObject', { virtuals: true }) videoSchema.set('toJSON', { virtuals: true }) Puedo registrar el resultado, pero cuando se muestra en el navegador, muestra el resultado vacío playURL:{} . ¿Como arreglarlo?
Gracias