I have to make a query where I have several users with differents Dates, and I just need extractr every user with his more recent Date, I achieve to make it works by mongodb console, but I cannot found the way to extrapolate into Java Spring using mongoTemplate or mongorepository. Just to be more clear imagine that I have this rows,I have to make a query where I have several use