Skip to main content

๐Ÿฆธ Embed user 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 user into the collection tracking library loans.

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