For example:
User-A
- 40
- 80
- 90
User-B
- 10
- 5
- 8
Now I want to get a documents that will fetch the highest based on user so the expected result could be:
1 - User-A = 90
2- User-B = 10
TL;DR
Developers are seeking a way to group responses from the listDocument function by user and retrieve the highest value for each user.
Solution: Use a script to iterate through the user responses, grouping them by user and retrieving the highest value for each user.