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 DocumentSQL
A DatabaseA Database
A CollectionA Table
A DocumentA Row

Why use NoSQL Document Database?

  • Need to access only a localised data.
    • Like Account related details of a User.