-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description
Add a reusable pagination helper (e.g. parse limit/offset or cursor from query, return nextCursor and page metadata) so list endpoints can use a consistent pagination contract.
Requirements and context
- Implement only in new files. Add
src/lib/pagination.ts(orsrc/middleware/pagination.ts). Do not modifypackage.json,src/index.ts, or existing route files. Expose helpers like parsePagination(req), formatPage(data, total, cursor) so that routes can adopt in separate PRs.
Suggested execution
- Branch:
git checkout -b feature/pagination-helper - Add pagination util and unit tests. Example commit message:
feat(lib): add pagination helper for list endpoints
Guidelines
- Only new lib file. Timeframe: 96 hours.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program