I want to fetch a item which have the maximum range key against the particular partition key . I want to fetch that data using spring data in dynamo .
That working fine if I use spring data query
findByChauffeurKeyOrderByPublishDateDesc(@Param("chauffeurId") ChauffeurKey chauffeurKey,Pageable pageRequest)
where chauffeurId is hashKey and PublishDate is Range Key. I have used Pagebale Object but it Returns all the item against that chauffeurId. I just want to read Single item Which has maixmum Range key . How it can be done with Spring Data .
I want to fetch a item which have the maximum range key against the particular partition key . I want to fetch that data using spring data in dynamo .
That working fine if I use spring data query findByChauffeurKeyOrderByPublishDateDesc(@Param("chauffeurId") ChauffeurKey chauffeurKey,Pageable pageRequest)
where chauffeurId is hashKey and PublishDate is Range Key. I have used Pagebale Object but it Returns all the item against that chauffeurId. I just want to read Single item Which has maixmum Range key . How it can be done with Spring Data .
@michaellavelle @derjust