MongoDB
is a open source NoSQL database, written in C++. MongoDB is a cross platform
document oriented database.
What is a document?
Document
is a set of key-value pairs.
Example
{
"id": 1,
"firstName": "Hari
Krishna",
"lastName": "Gurram"
}
Above
document contains information about a person. There is no schema for documents.
What is a
collection?
Collection
is a group of documents. You can correlate collection as table and document as
a row in the table. Documents in same collection don’t need to have same
fields/structure.
No comments:
Post a Comment