Alright, let me do some more research and see what I can come up with.
Just to confirm, MongoBD doesn't offer the use of a max(_updatedAt) value in the select? This would definitely fix my problem!
Yes, that is what I need help with.
What do I do with value? How do I sort the $ response that holds all the row?
Can you help me with this? Can anyone?
It isn't that simple because I do not know the date. Those values will be created as my users send data to this collection.
I am looking to retrieve the latest group item value based on its user id. Which is why I still think this is a group query and I need help on how to do this.