๐๏ธ ๐ Clean up book attributes
We want to clean up the bookAttributes array in our MongoDB schema. We want an array of objects containing attributes, modelled as key value pairs. something like:
๐๏ธ ๐ Change genres in books
We want to modify the MongoDB schema so that each book's genres are represented as an array of strings. We'll have data duplication, as genres will get copied on each book. This is a good strategy if the duplicated data does not change often.
๐๏ธ ๐ Add authors details to the books collection
๐ Add author name to the books collection
๐๏ธ ๐ Add last three reviews to each book (from reviews table)
We want to modify the MongoDB schema so that each book contains an array of its latest three reviews.
๐๏ธ ๐ Edit author's aliases array
We want to modify the MongoDB schema so that each author's aliases are represented as an array of strings.
๐๏ธ ๐ฆธ Simplify the books array in the authors collection
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.
๐๏ธ ๐ฆธ Embed book information in operations
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.
๐๏ธ ๐ฆธ Embed user information in operations
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.
๐๏ธ ๐ฆธ Remove unnecessary ids from operations
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.
๐๏ธ ๐ฆธ Add user's names to reviews
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.
๐๏ธ ๐ฆธ Clean Users address data
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.