O'Reilly logo

Learning Azure DocumentDB by Riccardo Becker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Utilizing DocumentDB from Node.js

This section will cover how to build a Node.js application that is using the DocumentDB basics we discussed in the previous chapters. In this section, we will cover:

  • Preparing our Node.js project
  • Connecting to our DocumentDB account
  • Querying documents using Node.js
  • Creating a document using Node.js

Preparing our project

To use DocumentDB from our existing example project, we need to install some modules. Modules are maintained in the package.json file inside our project. Installing additional modules will modify this JSON file with new entries. When deploying our new functionality to Azure, this file is used to determine what additional modules need to be installed on our Azure node.

We can install additional modules ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required