MongoDB is a NoSQL Document Database. There are other kinds of NoSQL Databases.
NoSQL Document Database
- A Database has N no. of Collections.
- A Collection can have N no. of Documents.
When you query a document you get a document that is just below a collection.
Comparison b/w NoSQL Document vs SQL Database
| NoSQL Document | SQL |
|---|---|
| A Database | A Database |
| A Collection | A Table |
| A Document | A Row |
Why use NoSQL Document Database?
- Need to access only a localised data.
- Like Account related details of a User.