Skip to content

feat(backend): add Horizon paging cursor builder module (#370) - #477

Open
jdjioe5-cpu wants to merge 1 commit into
Kitewell-lab:mainfrom
jdjioe5-cpu:feat/issue-370-paging-cursor-builder
Open

jdjioe5-cpu wants to merge 1 commit into
Kitewell-lab:mainfrom
jdjioe5-cpu:feat/issue-370-paging-cursor-builder

Conversation

@jdjioe5-cpu

Copy link
Copy Markdown

Goal

Resolves #370

Adds the standalone backend module backend/src/pagingCursorBuilder.js with focused unit tests and technical documentation, implementing the Horizon collection paging query parameter builder ({ cursor, order, limit }).

Changes

  • backend/src/pagingCursorBuilder.js: Exports buildPagingCursorParams and helper functions.
  • docs/features/pagingCursorBuilder.md: Feature overview, parameters, and public API reference.
  • 8 focused test files covering happy path, empty input, limit validation, order validation, alias resolution, and record extraction.

Verification

  • npm test passed cleanly in backend/ (274 tests passed).
  • Zero modifications to existing files or other namespaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New backend module: backend/src/pagingCursorBuilder.js — Horizon paging cursor builder

1 participant