14. Manipulating MongoDB Documents from Node.js

In Chapter 13, “Getting Started with MongoDB and Node.js,” you learned the fundamentals of using the MongoDB Node.js driver to manage and manipulate databases and collections. This chapter expands on those concepts, describing manipulation of documents within collections. As described in Chapter 13, the MongoDB Node.js driver provides a lot of functionality in the Collection class, which allows you to insert, access, modify, and remove documents from collections.

This chapter is broken into sections that describe the basic document management tasks you perform on collections, including insertions and deletions. This chapter introduces you to the options that control the behavior of write requests ...

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.