18.3. MongoDB, a Document Type Database
MongoDB is a so called document database.
This means that its content is collections
of documents with content. The content and
the structure of the content are the
data of the database
word. The documents are
json documents. We say that
- A database holds a set of collections
- A collection holds a set of documents
- A document is a set of fields
- A field is a key-value pair
- A key is a name (string)
-
A value is a - basic type like string,
integer, float, timestamp, binary, etc.,
-
or a complex type such as
- another document,
- an array of values, or even
- an array of documents