title: selecting all the fields in a row using mapReduce
body: <p>I am using mongoose with nodejs. I am using mapReduce to fetch data grouped by a field.So all it gives me as a collection is the key with the grouping field only from every row of database.</p>
  
  <p>I need to fetch all the fields from the database grouped by a field and sorted on the basis of another field.e.g.: i have a database having details of places and fare for travelling to those places and a few other fields also.Now i need to fetch the data in such a way that i get the data grouped on the basis of places sorted by the fare for them. MapReduce helps me to get that, but i cannot get the other fields.</p>
  
  <p>Is there a way to get all the fields using map reduce, rather than just getting the two fields as mentioned in the above example??</p>