Demo of Async Virtuals in Monoose 6.2.7. Using no plugins, it's three steps.
-
Declare an instance method (it's
loadChildrenin the example). The instance method should store the results into a this._variable (variable name is not relevant, just be sure not to use one that's already in use). -
In
schema.post('find'), run an Promise that fires your instance method in a loop using await Promise.all().