difference between reference and embedded code example
Example: embed vs reference mongodb
In general, embed is good if you have one-to-one or
one-to-many relationships between entities, and reference
is good if you have many-to-many relationships.