title: Query objects in an array that match a condition
body: <p>I have several documents with the following structure,</p>
  
  <pre><code>{
    "a": {
      "b": [
        {
          "c": "01",
          "d": "2018-04-16T02:16:55.083Z"
        },
        {
          "c": "15",
          "d": "2018-05-11T13:46:36.052Z"
        }
      ]
    }
  }
  </code></pre>
  
  <p>I've tried <code>{ 'a.b.c': { "$in" : ["01","02"]} }</code> to check if the value of c is in that array but doing this uses all the objects in the array, how can I check the value of a.b.c only for the object with the highest date value in a.b.d?</p>