1.

What is a Document in MongoDB?

Answer»

A Document in MongoDB is an ORDERED SET of keys with associated values. It is represented by a map, hash, or dictionary. In JavaScript, DOCUMENTS are represented as objects:
{"greeting" : "Hello WORLD!"}

Complex documents will contain MULTIPLE key/value pairs:
{"greeting" : "Hello world!", "views" : 3}



Discussion

No Comment Found