title: MongoDB - find document based on date stored as array
body: <p>Sample document:</p>
  <pre><code>{
  &quot;_id&quot;:&quot;ADANIGREEN&quot;,
  &quot;longcount&quot;:6,&quot;
  shortcount&quot;:0,
  &quot;trend&quot;:&quot;Y&quot;,
  &quot;shortdate&quot;:[{&quot;$date&quot;:&quot;2020-07-13T00:00:00.000Z&quot;}],
  &quot;longdate&quot;:[{&quot;$date&quot;:&quot;2020-07-20T00:00:00.000Z&quot;}]
  }
  </code></pre>
  <p>I need to query document like the SQL query below:</p>
  <pre><code>select _id from sample_document where longdate='2020-07-20T00:00:00.000'
  </code></pre>
  <p>Thanks in advance.</p>