1.

What is a Collection in MongoDB?

Answer»

A collection in MongoDB is a group of documents. If a document is the MongoDB analog of a row in a relational database, then a collection can be thought of as the analog to a table.
Documents within a single collection can have any number of DIFFERENTSHAPES.”, i.e. collections have dynamic schemas. 
For example, both of the following documents COULD be stored in a single collection:

{"greeting" : "Hello WORLD!", "VIEWS": 3}{"signoff": "Good bye"}


Discussion

No Comment Found