See subject. This is a great COMBO
Spoiler:
I´m positive to get the Query working in Firebase Realtime Database too NOW.
Spoiler:
Please note that there are more than 50 Documents in the collection.
B4X:
Dim col As CollectionReference = fs.collection("restaurants")
If col <> Null Then
'Log(col)
col.setEventname("Firestore","Restaurants")
col.orderBy3("numRatings","DESCENDING").whereEqualTo("category","Burgers").limit(3).fetch
Else
Log("Restaurant-Colletion is null")
End If
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Firestore_onEvent(com.google.firebase.firestore.QuerySnapshot@f696ee0)
(MyMap) {avgRating=2.5854711611344063, price=3, numRatings=19, category=Burgers, city=Portland, name=Foo Eatery, photo=https://storage.googleapis.com/firestorequickstarts.appspot.com/food_10.png}
(MyMap) {avgRating=2.342525567779633, price=1, numRatings=19, category=Burgers, city=Boston, name=Bar Restaurant, photo=https://storage.googleapis.com/firestorequickstarts.appspot.com/food_6.png}
(MyMap) {avgRating=3.086751562646601, price=3, numRatings=10, category=Burgers, city=Charlotte, name=Sam's Drive Thru, photo=https://storage.googleapis.com/firestorequickstarts.appspot.com/food_8.png}
** Activity (main) Pause, UserClosed = false **
I´m positive to get the Query working in Firebase Realtime Database too NOW.
Last edited: