8. Coding JavaScript in MongoDB


In this chapter, you will learn how to read, understand, and create simple MongoDB applications using the Node.js driver. These applications will help you to programmatically fetch, update, and create data in your MongoDB collections, as well as to handle errors and user inputs. By the end of this chapter, you will be able to create a simple application built on top of MongoDB.


So far, we have interacted directly with the MongoDB database using the mongo shell. These direct interactions are quick, easy, and a fantastic way to learn or experiment with MongoDB features. However, in many production situations, it will be software that connects with the database in place of the user. MongoDB ...

Get MongoDB Fundamentals now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.