Closed arthurRbr closed 6 years ago
Hi,
I'm struggling to make nested models work, would you mind adding an example?
In my model, I have: child: string | UserModel
child: string | UserModel
String when the child is not populated, UserModel if populated.
Now if I try to access child.email after population, I get property email does not exist.
child.email
Any idea how to fix this?
Many thanks!
Hi,
I'm struggling to make nested models work, would you mind adding an example?
In my model, I have:
child: string | UserModel
String when the child is not populated, UserModel if populated.
Now if I try to access
child.email
after population, I get property email does not exist.Any idea how to fix this?
Many thanks!