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