title: Between StartDate and EndDate Firestore
body: <p>I have documents with a <code>startDate</code> and <code>endDate</code>. I would like to query between the range of the <code>startDate</code> and <code>endDate</code>. I can query between a range for one date like so:</p>
  
  <pre><code>whereField("startDate", isGreaterThan: start).whereField("startDate, isLessThan: end)
  </code></pre>
  
  <p>But I cannot query two fields like so:</p>
  
  <pre><code>whereField("startDate", isGreaterThan: start).whereField("endDate", isLessThan: end)
  </code></pre>
  
  <p>Firestore throughs an exception when using more than one field in a compound where statement.</p>