Suggest an editImprove this articleRefine the answer for “What is a collection in MongoDB?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)A collection in MongoDB is a group of documents, analogous to a table in a relational database, but with no fixed schema: it groups documents that are related in meaning (e.g. `users`, `orders`), the documents inside it can have different sets of fields, and indexes, validation rules, TTL, and other settings can be defined on the collection. **Key point:** every collection belongs to a specific database and acts as a logical container - it's more flexible than an SQL table precisely because it doesn't require every document to share the same structure.Shown above the full answer for quick recall.Answer (EN)ImageA collection in MongoDB is a group of documents, analogous to a table in a relational database, but with no fixed schema. ### The main points 1. **Holds documents** A collection groups documents that are related in meaning, e.g. `users`, `orders`, `products`. 2. **No rigid schema** Documents inside the same collection can have different sets of fields, the database allows this. 3. **Organizing data within a database** Every collection belongs to a specific database and acts as a logical container. 4. **Indexes and settings** Indexes, validation rules, TTL, and other parameters can be defined on a collection. **Summary:** a collection is a logical grouping of documents in MongoDB, analogous to a table, but more flexible and without a fixed structure.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.