Summary
feedback.getCategories() pagination does not work correctly — pageSize and cursor navigation are broken due to a backend bug.
Bug 1: pageSize is ignored
Passing pageSize: 2 returns more than 2 items. The backend does not correctly apply the page size constraint to the full list of categories (which includes system defaults + tenant-specific categories).
const page = await feedback.getCategories({ pageSize: 2 });
// Expected: 2 items
// Actual: up to 5 items (3 system defaults + tenant categories, ignoring pageSize)
Bug 2: hasNextPage is always false
The backend returns totalCount equal to the number of items on the current page rather than the actual total. As a result, hasNextPage is always false and cursor-based navigation is impossible.
const page = await feedback.getCategories({ pageSize: 2 });
page.hasNextPage; // Always false, even when there are more categories
Notes
- The SDK sends
skip and take correctly — this is a backend-only bug. No SDK changes are needed once the backend is fixed.
getCategories() without pagination options works correctly and returns all categories.
Summary
feedback.getCategories()pagination does not work correctly —pageSizeand cursor navigation are broken due to a backend bug.Bug 1:
pageSizeis ignoredPassing
pageSize: 2returns more than 2 items. The backend does not correctly apply the page size constraint to the full list of categories (which includes system defaults + tenant-specific categories).Bug 2:
hasNextPageis alwaysfalseThe backend returns
totalCountequal to the number of items on the current page rather than the actual total. As a result,hasNextPageis alwaysfalseand cursor-based navigation is impossible.Notes
skipandtakecorrectly — this is a backend-only bug. No SDK changes are needed once the backend is fixed.getCategories()without pagination options works correctly and returns all categories.