Backend Development
Step 11 / 20120 min

MongoDB

Databases

Explanation

Document databases store JSON-like records. Learn collections, queries, and when MongoDB fits better than SQL.

Code example

javascript
await 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.

MongoDB · Backend Development | XirfadHub Roadmap