Now that we understood the way we can design our documents, let's take some examples of real-life problems, such as how to write a data model that better describes the relationship between entities.
This section will present you with patterns that illustrate when to embed or when to reference documents. Until now, we have considered as a deciding factor:
One-to-one relationships are simpler than the others. Most of the time, we will map this relationship with embedded documents, especially if it is a "contains" relationship.
The following example shows a customer's document. ...