CHAPTER 11
Mongoose
The human mind gets used to strangeness very quickly if [strangeness] does not exhibit interesting behavior.
—Dan Simmons
MongoDB is a popular cross-platform document database, often lumped into the “NoSQL” classification with other nonrelational data stores such as CouchDB, Cassandra, RavenDB, and so forth. It is a popular choice for data storage among Node.js developers because its “records” are stored as plain JSON objects, and its query interface and stored functions are written in plain JavaScript.
Storing, accessing, and manipulating data in MongoDB is not terribly complex, but Node.js libraries such as Mongoose can ...
Get JavaScript Frameworks for Modern Web Dev now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.