BTI Beyond The Interviews

Databases · 10 sections

MongoDB

Document model, aggregation, indexing, and the NoSQL interview essentials.

Premium · preview 130 cards Updated 24 Oct 2026
Free to preview. The first 3 cards and the full outline are below — the rest of this sheet is part of the Backend, Databases & AI bundle.

What's inside

Preview — first 3 of 130 cards

Document & collection

MongoDB stores JSON-like documents (BSON) in collections within databases. Schema-flexible; no fixed columns. Documents can vary in structure.

use shop; db.users.insertOne({name:'a',age:30})

BSON vs JSON

BSON is binary JSON with extra types (Date, ObjectId, Decimal128, Binary). More efficient to parse/scan; supports richer types.

_id field

Every document has _id (default ObjectId). Must be unique within collection. Drives primary key index (_id_).

_id: ObjectId('...')

127 more cards in this sheet

Unlock the Backend, Databases & AI bundle — ₹399

One-time payment. Unlocks this sheet and 14 other sheets in the bundle, plus a typeset PDF of each.

Unlock the bundle See all bundles

Or get all 76 sheets for ₹999 — one payment, every future sheet included.