This tutorial could not be loaded.
Loading tutorial...
Interactive tutorial
Learn how MongoDB organizes data into databases, collections, and documents. Using mongosh on your own computer, you will create sample documents, query and organize results, update selected records, and delete data safely. Finish by completing and verifying a small CRUD workflow.
Step 1 of 8
3 min
Connect and Understand the Data Hierarchy
Connect to a local MongoDB server, select the dedicated practice database, and identify how MongoDB data is nested.
Step 2 of 8
3 min
Read the Anatomy of a Document
Learn to read MongoDB document syntax, identify common BSON-style values, and understand the purpose of a unique `_id`.
Step 3 of 8
4 min
Create Documents with Inserts
Create the three-book practice dataset with single-document and multiple-document inserts, interpret successful write results, and recognize duplicate-ID protection.
Step 4 of 8
4 min
Read Documents with Filters
Use mongosh read filters to retrieve exact documents, compare numeric fields, and predict matching results.
Step 5 of 8
4 min
Shape and Order Query Results
Use projections, sorting, and limits to request a concise, predictable read result from the `books` collection.
Step 6 of 8
5 min
Update Selected Documents
Safely modify selected MongoDB documents with `$set` and `$inc`, then verify stored values and interpret update-result counts.
Step 7 of 8
4 min
Delete Documents Safely
Use bounded filters, preview targets, interpret deletion counts, and verify removals in mongosh.
Step 8 of 8
5 min
Complete and Verify a CRUD Workflow
Complete a safe local CRUD lifecycle for the reserved Garden Starter document and verify each result in mongosh.
Video Courses
Ideal for beginners
recommended
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks