“Beware of bugs in the above code; I have only proved it correct, not tried it.”
|--Donald E. Knuth|
In this chapter, we’ll learn to use MongoDB. MongoDB is a particular type of NoSQL database; specifically, it’s a document-oriented database system. The Node.js ecosystem has excellent support for many popular relational database systems such as PostgreSQL and MySQL. Relational databases are robust and time-tested, and would adequately serve the needs of many modern-day web applications. So why are we using MongoDB? Let’s now go over some of the main features of MongoDB to answer this question.
One of the most prominent features about MongoDB is that it is document-oriented and schema-free. The document ...