Let's look at this relationship
Database ⊃ Collection ⊃ Document ⊃ Field
This means:
This picture below is the mapping between terms related to data in Relational Database and NoSQL Database
Unlike Relational Database in which each record is a row in a table, NoSQL stores each record as a document in JSON type.
This picture below is an example of a document in NoSQL database, in comparison with a row in RDB.
A few important things that differentiate between RDS and and NoSQL:
"Age"
column in the example above must be Integer type. However, the data of "Age"
field in NoSQL can be any types, such as String, Integer, Float
. timestamp"
and "atmosphericPressureChange".
"wind"
field is an object itself, and it contains "direction"
object.