title: mongodb array string element query
body: <p>I am querying array of strings in mongdb and it does not work with $gt/$lt operators, see below. "cpu" array 3rd element is string "12"  </p>
  
  <pre><code>nms:PRIMARY&gt; db.checkpoints.find({ "cpu.3": "12" }).limit(1)
  { "_id" : ObjectId("5665ed5d601be0ed56d4ca0a"), "day" : "1", "hostname" : "WAL-VSX-02", "time" : "15:33:54", "con" : [ "75", "44", "10", "25997", "8895", "13788", "338", "20", "226" ], "cpu" : [ "0", "0", "0", "12", "0", "2", "0", "0", "0" ], "__v" : 0 }
  nms:PRIMARY&gt; db.checkpoints.find({ "cpu.3": {$gte: 10}})
  nms:PRIMARY&gt; 
  </code></pre>