I read that embedsMany
(in case of non relational db) puts the embedded models in the parent model document. While hasMany
creates a new collection of child model and a relation is created between parent collection and child collection. What about referencesMany
?
There is also this example project, where customer referencesMany
Account
and hasMany
Order
. I am not understanding the difference.