O'Reilly logo

JavaScript JSON Cookbook by Ray Rischpater

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required