title: Query mongo collection as an object (not array)
body: <p>I would like to aggregate my collection (with mongoose) to get all documents in the following form:</p>
  <pre><code>{
     _id1: doc1,
     _id2: doc2,
     ....
  }
  </code></pre>
  <p>instead of the usual array ([doc1, doc2, ...]). it allows me to easily access docs by their id.</p>
  <p>Thanks!</p>