MongoDB Node.js Driver (original) (raw)

Introduction

The official MongoDB Node.js driver allows Node.js applications to connect to MongoDB and work with data. The driver features an asynchronous API which allows you to interact with MongoDB using Promises or via traditional callbacks.

Features

MongoDB Driver

Whether you are new to MongoDB or you just want to brush up on the core concepts, you can check out the Fundamentals section which features material on using the Node.js driver for the following:

Quick Start

Given that you have created your own project using `npm init` we install the mongodb driver and its dependencies by executing the following `npm` command.

npm install mongodb --save

This will download the MongoDB driver and add a dependency entry in your `package.json` file.


MongoDB University

Using MongoDB with Node.js

This course guides you through everything you need to get started with MongoDB in your NodeJS applications. In this course, you’ll get an overview of the official MongoDB NodeJS/Javascript driver and learn how to install it by using npm. You’ll learn how to connect your application, perform basic CRUD operations, troubleshoot, and then build aggregations.

Learn More

MongoDB Node.js Developer Path

This learning path contains a series of courses to teach you MongoDB skills. In this path, you’ll learn the basics of building modern applications with Node.JS, using MongoDB as your database.

Learn More