← All tutorials

GoCareerGo Tutorials

MongoDB Tutorial

Documents, collections, CRUD, aggregation, Atlas and driver connectivity.

What is MongoDB?

MongoDB is a document-oriented NoSQL database that stores data as flexible, JSON-like BSON documents instead of rows in fixed tables.

  • Documents live in Collections (roughly: rows in a Table, in SQL terms)
  • No fixed schema — documents in the same collection can have different fields
  • Built for horizontal scaling (sharding) and high write throughput
  • Query language is a rich, JSON-based syntax rather than SQL
{
  "_id": "64f1...",
  "name": "Ada Lovelace",
  "skills": ["math", "programming"],
  "address": { "city": "London" }
}
Tip

Give the SQL-to-Mongo mapping instantly: database→database, table→collection, row→document, column→field.