Chapter 2. Configuring Persistence with MongoDB
In this chapter, we will show you how to configure the persistence layer of your app, which is responsible for the provision of the central data storage and retrieval services. For this, we will use MongoDB, the widely popular NoSQL database, and its associated driver and interface for Node.js.
In this chapter, we'll cover the following topics:
- Configuring documents, collections, and databases
- Connecting to MongoDB using a product order database as an example
- Creating relations between documents
- Querying data and displaying results in the command line