MongoDB is a document database. Data is stored as BSON documents (binary JSON) in collections. No tables, no rows, no fixed schema by default.
Hierarchy: Database → Collections → Documents. A document is a JSON-like object. A collection is a group of documents (loosely like a SQL table). Documents in the same collection don't need to have the same fields.
Every document gets a unique _id field automatically — an ObjectId by default. ObjectId encodes a timestamp, machine id, and random bytes — it's sortable by creation time.
MongoDB is schema-flexible but that doesn't mean schemaless in practice. Use Mongoose (ODM) in Node to enforce structure, validations, and relationships at the application layer.