title: Firebase Can't call equalTo() and startAt() combined
body: <p>I have a Firebase database that I'm trying to query, however I'm getting a error at run time saying </p>
  
  <pre><code>java.lang.IllegalArgumentException: Can't call equalTo() and startAt() combined
  </code></pre>
  
  <p>My database is as follows</p>
  
  <p><a href="https://i.stack.imgur.com/MqDCD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MqDCD.png" alt="DB"></a></p>
  
  <pre><code>   //DB refrence
      myBikesDB = FirebaseDatabase.getInstance().getReference().child("Bikes  Registered By User").child(ronan);
  
      //query
      query = myBikesDB.orderByChild("beaconUUID").startAt("!").endAt("~").equalTo(true, "stolen");
  </code></pre>
  
  <p>So with the query im attempting to return all DB object where the value beaconUUID is not null, this bit works correctly. </p>
  
  <p>However, once I add a second criteria <code>.equalTo(true, "stolen")</code>, I get the above stated error.</p>
  
  <p>Is there any way I can return all items that have the value beaconUUID as not null AND have stolen set as true.</p>
  
  <p>Thanks in advance.</p>