Skip to main content

๐Ÿฆธ Embed book information in operations

info

Extra activity! Do it if you have extra time or are following along at home. It won't be covered during the hands-on lab.

Now we want to store more details from each book into the collection tracking library loans.

  • On the MongoDB diagram view, click on the operations collection.
  • On the relational mappings list on the right, click +Add.
  • Select Embedded documents.
  • Select books as Source table.
  • Check the id and title fields and uncheck the rest.
  • Click Save and close.
Changes in the Operations collection mapping