collection
*
Random_Id1
*amount:100
*name:John
Random_Id2
*amount:150
*name:Matt
Random_Id3
*amount:65
*name:Alice
I have a firestore collection that has different documents under it. these documents have data within them(name,age,amount, etc.). is there a way i can return the highest or Maximum amount in the collection? I'm implementing this in java(android). In the case of the above structure, the Maximum will be 150. Thank you in advance