Understanding Database Change Options

Several of the methods discussed in this chapter modify a MongoDB database. When you make changes to a database, the MongoDB Node.js driver needs to know how to handle the connection during the change process. For that reason, each of the methods that change the database allow you to pass in an optional options parameter that can specify some or all of the properties listed in Table 14.1.

Image

Table 14.1 Options that can be specified in the options parameter for database changes

Get Node.js, MongoDB, and AngularJS Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.