Common - many fixes (#15395)

This commit is contained in:
Etienne
2025-10-28 13:33:41 +01:00
committed by GitHub
parent 99d73d1d4b
commit ee6b86b1a8
30 changed files with 391 additions and 105 deletions
@@ -14,12 +14,16 @@ export const getPageInfo = (
limit: number,
isForwardPagination: boolean,
): CommonPageInfo => {
const { hasNextPage, hasPreviousPage } = getPaginationInfo(
const { hasNextPage, hasPreviousPage, hasMoreRecords } = getPaginationInfo(
records,
limit,
isForwardPagination,
);
if (hasMoreRecords) {
records.pop();
}
const startCursor =
records.length > 0 ? encodeCursor(records[0], orderBy) : null;
const endCursor =