๐ฆธ Remove unnecessary ids from 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 remove some unncessary id fields from the operations collection. We have bookId and userId but we also have these values in the embedded book and user fields.
- On the MongoDB diagram view, click the
operationscollection. - On the relational mappings list on the right, click on the edit icon of
opperationsNew Documents mapping rule. - Uncheck the
bookIdanduserIdfields, and leave all other fields checked. - Click
Save and close.
