Explanation
Document databases store JSON-like records. Learn collections, queries, and when MongoDB fits better than SQL.
Code example
javascriptawait db.collection("skills").insertOne({ name: "Redis", level: "beginner" });
const rows = await db
.collection("skills")
.find({ level: "beginner" })
.sort({ name: 1 })
.toArray();Helpful resources
Exercise
Create a skills collection, insert documents, and query by level with a sort.
