Chapter 5. Using JSON with MongoDB

In this chapter, we will cover the following recipes:

  • Setting up MongoDB
  • Installing the MongoDB database driver for Node.js
  • Installing the express module for Node.js
  • Connecting to a MongoDB database using Node.js
  • Creating a document in MongoDB using Node.js
  • Searching for a document in MongoDB with Node.js
  • Updating a document in MongoDB with Node.js
  • Deleting a document in MongoDB using Node.js
  • Using REST to search MongoDB
  • Using REST to create a document in MongoDB
  • Using REST to update a document in MongoDB
  • Using REST to delete a document in MongoDB

Introduction

In this chapter, we look at how you can use MongoDB as the backend storage for your web application. While not completely focused on JSON, as you'll see, this chapter's ...

Get JavaScript JSON Cookbook 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.