Understanding MapReduce in MongoDB, with Node.js, PHP (and Drupal) (Note, some of the details in this post may be outdated. For example, MongoDB now supports Aggregation queries which simplify some of these use cases. However, the MapReduce concepts are probably still the same.) MongoDB’s query language is good at extracting whole documents or whole elements of a document, but on its own it can’t