title: Filtering (Query) docs based on HashMap from Firestore -android
body: <p>I am trying to filter and get docs which wrote to Firestore. So my collections inside I have one more HashMap</p>
  
  <blockquote>
    <p>doc1</p>
  </blockquote>
  
  <pre><code>//.....
  
  "votes": [
  {
    "userID1": true,
    "userID2": true,
  }],
  
  //.....
  </code></pre>
  
  <blockquote>
    <p>doc2</p>
  </blockquote>
  
  <pre><code>//.....
  
  "votes": [
  {
    "userID1": true,
    "userID2": true,
  }],
  
  //......
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/blf8f.png" rel="nofollow noreferrer">Please check here my Firestore snapshot for better understanding</a> </p>
  
  <p>Now I need to filter all userID1 (Highleteed in attached image)where is equal to true.</p>
  
  <p>I tried code as below seems not working </p>
  
  <pre><code>// Construct query basic query
  mQuery = mFirestore.collection(fsCollection)
          .orderBy("timestamp", Query.Direction.DESCENDING)
          .whereEqualTo(getUid(), true)
          .limit(LIMIT);
  </code></pre>