Explore advanced update operations in MongoDB, including updating multiple fields, using array selectors, and managing document structure with upsert and other modifiers.
Overview
Syllabus
- Lesson 1: A Closer Look at Update Operations in MongoDB
- Updating and Managing Comic Books
- Updating Multiple Fields in Comic Book Records
- Fix the Comic Book Script
- Correct the Publisher Fields Update
- Celebrate Stan Lee's Birthday
- Lesson 2: Arithmetic Updates in MongoDB
- Updating Comic Book Inventory
- Updating Comic Book Inventory
- Decrement Comic Book Stock Quantities
- Tripling Comic Book Stock for Flash Sale
- Lesson 3: Using $min and $max in MongoDB Update Operations
- Updating Ratings with Max and Min
- Correcting the Highest Rating Update
- Conditional Stock Quantity Update
- Lesson 4: Deleting and Renaming Fields in MongoDB
- Remove Unnecessary Customer Rating Fields
- Citizens of the World
- Removing Redundant Fields from All Documents
- Shorten Customer Rating Field Names
- Renaming Fields in MongoDB
- Final Exam on Field Renaming
- Lesson 5: Replacing and Upserting Documents in MongoDB
- Replacing an X-Men Comic with Deadpool
- Replace Captain Marvel with Deadpool
- Exploring Upsert in MongoDB
- Upserting Wolverine to Comic Book Catalogue
- Lesson 6: Updating Array Elements in MongoDB
- Updating Comic Book Arrays
- Add Origin City to Spider-Man Characters
- Updating Array Elements by Index
- Finding and Tagging a Shapeshifter
- Setting Superpowers Field for Comic Book Characters
- Lesson 7: Adding and Removing Elements from Arrays
- Updating Comic Book Arrays
- Adding Single Elements
- Adding Multiple Elements to Arrays
- Sorting Array Elements
- Deleting Array Elements