June 2014
Intermediate to advanced
696 pages
38h 52m
English
One of the tasks that you commonly need to perform on data stored in a MongoDB database is retrieving one or more documents. For example, consider product information for products on a commercial website. The information is stored once but retrieved many times.
The retrieval of data sounds fairly simple, but it can become quite complex as you need to also filter, sort, limit, and aggregate the results. In fact, Chapter 15, “Accessing MongoDB Documents from Node.js,” is devoted to the complexities of retrieving data.
This section introduces you to the simple basics of the find() and findOne() methods of the Collection object to make it easier to understand the code examples in this chapter. The syntax for the ...
Read now
Unlock full access