Closed wellcaffeinated closed 5 years ago
I had a piece of code that did
let query = Model.find({ foo: 'bar' }).setOptions( opts ).lean({ virtuals: true }) let cursor = query.cursor() //... let doc = cursor.next()
And in 4.x it worked with virtuals populated. Not so in mongoose 5.x.
Thanks!
Fixed and released v0.4.1. Thanks for reporting this issue :+1:
I had a piece of code that did
And in 4.x it worked with virtuals populated. Not so in mongoose 5.x.
Thanks!