13Getting Started with MongoDB and Node.js

You can use several modules to access MongoDB from your Node.js applications. The MongoDB group adopted the MongoDB Node.js driver as the standard method. This driver provides all the functionality and is similar to the native commands available in the MongoDB shell client.

This chapter focuses on getting you started accessing MongoDB from your Node.js applications. You learn how to install the MongoDB Node.js driver and use it to connect to the MongoDB databases. Several sections also cover the processes of creating, accessing, and manipulating databases and collections from your Node.js applications.

Adding the MongoDB Driver to Node.js

The first step in implementing MongoDB access from your Node.js ...

Get Node.js, MongoDB and Angular Web Development, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.