MongoDB for Beginners: Learn CRUD by Doing
Learn MongoDB from scratch: model data as documents, then insert, find, update and delete it with the commands working developers use. Practise on a small shop's stock list, with a question after every idea.
Instructor: iCourse Team. Duration: 1 hr. Category: Databases.
Lessons
- Documents, collections and databases (12 min)
- Meet mongosh and insert data (7 min)
- Finding documents with find (6 min)
- Operators, arrays and nested fields (7 min)
- Sorting, limiting and paging (6 min)
- Updating documents safely (8 min)
- Deleting without regrets (6 min)
- Capstone: run the shop (6 min)
What you will learn
- Explain how MongoDB stores data in documents, collections and databases
- Insert, find, update and delete documents using mongosh commands
- Write filters with comparison, logical, array and nested-field matching
- Sort, limit and page through results
- Change data safely with $set, $inc and $push, and avoid deleting more than you meant to
Before you start
- No database experience needed
- Optional: install mongosh or create a free MongoDB Atlas cluster to try the examples yourself
All courses