title: Firestore where query does not work
body: <p>We have used <a href="https://github.com/angular/angularfire2/blob/master/docs/firestore/querying-collections.md" rel="nofollow noreferrer">AngularFire2</a> and following query gave permission error:</p>
  
  <pre><code>af.collection&lt;any&gt;(`tours`, ref =&gt;
    ref.where('startDate', '&lt;', new Date()).where('front_page', '==', true))
  </code></pre>
  
  <p>But the same query works fine with <a href="https://firebase.google.com/docs/reference/admin/node/admin.firestore" rel="nofollow noreferrer">firebase-admin</a> in cloud functions:</p>
  
  <pre><code>admin.firestore().collection('tours').where('startDate', '&lt;', new Date()).where('front_page', '==', true).get()
  </code></pre>
  
  <p>Here is firestore rules:</p>
  
  <pre><code>match /tours/{tourId}{
   allow read:  if (resource.data.startDate.date() &lt; request.time.date());
   allow write: if isAdmin();
  }
  </code></pre>
  
  <p>Any idea?</p>