Skip to content

Commit

Permalink
feat: include order at frui resource
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Apr 16, 2024
1 parent b382105 commit 51fd70c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Iterable<Fruit> cursor(@QueryParam("after") @DefaultValue("") String afte
var pageRequest = PageRequest.ofSize(size).beforeCursor(PageRequest.Cursor.forKey(before));
return fruitRepository.cursor(pageRequest, DESC).stream().toList();
}
var pageRequest = PageRequest.ofSize(size);
var pageRequest = PageRequest.ofSize(size).size(size);
return fruitRepository.cursor(pageRequest, ASC).content();
}
}

0 comments on commit 51fd70c

Please sign in to comment.