bitovi / bitovi/hatchify

Pagination including "included" records

Open
#558 0 comments 0 reactions 0 assignees View on GitHub
fix
Dominant language
TypeScript
Stars
83
Forks
6
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
If you include a has many relationships that includes a high number of records in the response, the number of main records returned is lower than the set pagination count. This is likely because the included relationship records are added to the count

**Expected behavior**
If pagination is set to 50, the API should respond with 50 base records and not keep track of the number of included records

**Installed Packages**
- latest hatchify

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the pagination behavior described in the issue with a has-many relationship containing many included records. Trace the API pagination and relationship-inclusion handling, then verify that a pagination value of 50 returns 50 base records regardless of the number of included records.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.