title: MongoDB C# map an Item
body: <p>i´m using map/reduce to find the max Revision of an Document.</p>
  
  <pre><code> var map = "function() {emit(this.DocName, this.Revision);}";
   var reduce = "function (key,values) {return Math.max.apply(Math, values);}";
   QueryDocument Query = new QueryDocument("DocName", stFName);
   var mr = docs.MapReduce(Query, map, reduce).Response;
  </code></pre>
  
  <p>mr contains</p>
  
  <pre><code>{[{ "_id" : "WINWORD8.DOC", "value" : 2.0 }]}
  </code></pre>
  
  <p>How can use 'value' as an variable?</p>
  
  <p>Regards</p>
  
  <p>Thomas</p>