Using MongoDB with Node.js

  • Deepak Vohra


A traditional scripting language-based web application is built on the client/server model requiring a client scripting language such as JavaScript and a server scripting language such as PHP and making use of a web server. Node.js is different in that it is server side scripting built on V8 JavaScript Engine. V8 is Google’s open source JavaScript engine used in Google Chrome. Node.js is based on the event-driven model and for developing fast, scalable, data-intensive, real-time, network applications. In this chapter we shall discuss accessing MongoDB with Node.js (or just Node) and making data modifications in the database using the Node.js driver for MongoDB. This chapter covers the following topics:


Local Database Single Document Method Block Multiple Document Database Instance 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Supplementary material (10 kb)
Ch5 (zip 11 kb)

Copyright information

© Deepak Vohra 2015

Authors and Affiliations

  • Deepak Vohra
    • 1
  1. 1.BCCanada

Personalised recommendations