I have a Collection that has these values (example):
groupname, value, userid, _updatedAt
A, 35, 222, Today
B, 54, 222, Today
A, 44, 255, Yesterday
A, 46, 222, Yesterday
B, 10, 222, Two days ago
I am already running a where query to only receive the rows for the connected user and I am sorting the data to get the latest values.
What I need to receive back for user A is this exactly:
A, 35, 222, Today
B, 54, 222, Today
So only the latest value entered for a "group" for a specified user.
I am still new to this so I am using the Query Service. My request probably needs Javascript but I would need help on how to achieve this with the current query result that I get (where on userid and sort on date).
Thanks