I have a database that looks like this:
I want to order "points" and "size" so that, for example, guilds with most points using the following code:
rootRef.child("displayGuilds")
.orderByChild("points")
and guilds with size greater or equal to "3" with the following code:
rootRef.child("displayGuilds")
.orderByChild("size")
.startAt(3.toDouble())
But I can't figure out how to achieve both of these requirements in a single query. I realize that there's another solution by combining and add another key like "size_points: 3_1562" but is there better way to do this in Firebase Realtime database?