馃憪 Remove unused ids from author details in books collection
We want to modify the MongoDB schema so that each book contains an array of its authors. In this step we will remove the redundant ID fields from the join table.
- On the MongoDB diagram view, click the
books
collection - On the relational mappings list on the right, click on the edit icon of
author_book
- Edit the field name from
authorBooks
to justauthors
- In the list of fields, uncheck
authorId
andbookId
, leaving all fields unchecked. - Click
Save and close
What we have now is an implementation of the Extended reference pattern