Book Image

JavaScript JSON Cookbook

By : Ray Rischpater, Brian Ritchie, Ray Rischpater
Book Image

JavaScript JSON Cookbook

By: Ray Rischpater, Brian Ritchie, Ray Rischpater

Overview of this book

Table of Contents (17 chapters)
JavaScript JSON Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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