8. Coding JavaScript in MongoDB

Overview

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.

Introduction

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 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.