O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Document databases

This is one of the most popular databases, thanks to MongoDB and CouchDB. This type of database stores the information in a JSON-based document. As this is a key-value store, you can save complex objects that contain arrays, nested documents, and other different data types. For example, you can save the following person in the JSON document:

{  "identification" : "PE0022458197",  "name": {    "firstName": "Jack",    "LastName": "Ma"  },  "age": 45,  "addresses": [     {"country": "Peru", "address": "MyTown PE#32"},    {"country": "China", "address": "OtherTown CH#44"}  ]  ...}

As you can see, you don't need to store the addresses in a different document (or a table in SQL databases); you can perfectly store them in the same document (or a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required