Skip to content

Commit 94873a0

Browse files
authored
Update 40-desired-schema-mongodb.mdx
1 parent bfc0ed5 commit 94873a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/40-desired-schema-mongodb.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ The following screenshot shows the MongoDB schema we will be creating in this la
1111
<Screenshot url="https://www.mongodb.com/products/tools/relational-migrator" src="img/40-image-001.png" alt="Screenshot of the connect modal" />
1212

1313
A few key points:
14-
- books will contain an array of authors with author id and name for fast retrieval. This is using the [Extended Reference Pattern](https://www.mongodb.com/blog/post/building-with-patterns-the-extended-reference-pattern) to reference a separate Collection (Authors) but having in books enough information aubout the author.
15-
- reviews are not included in the books collection as they can grow and become an [unbounded array](https://www.mongodb.com/developer/products/mongodb/schema-design-anti-pattern-massive-arrays/), an atipattern in Schema Design.
16-
- an author can have several aliases, we just store those strings in an array.
14+
- Books will contain an array of authors with author id and name for fast retrieval. This is using the [Extended Reference pattern](https://www.mongodb.com/blog/post/building-with-patterns-the-extended-reference-pattern) to reference a separate collection (Authors) but having in books enough information aubout the author.
15+
- Reviews are not included in the books collection as they can grow and become an [unbounded array](https://www.mongodb.com/developer/products/mongodb/schema-design-anti-pattern-massive-arrays/), an antipattern in schema design.
16+
- An author can have several aliases. We just store those strings in an array.

0 commit comments

Comments
 (0)