Grokking MongoDB
Vote

0% completed

​

Connect MongoDB with Node.js

A Node.js program cannot talk to a MongoDB server without help. It needs a library that opens a network connection to the server, sends commands in the format the server expects, and turns each reply into a JavaScript object. That library is called a driver, and MongoDB publishes an official one for Node.js as the npm package mongodb.

We will build one small program with this driver. It connects to a local server, stores a document that describes a person named John Doe, and then disconnects

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content