For example, lets say I have a post model, and a comment model, and my post model api returns comments as a sub-document array. In this scenario, how would I go about initializing my comment model instances when my post model findOne resolves?
↧