Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug] autoPagination limited at 6000 entities

Open
#584 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
graphql, typescript

Research direction

Reproduce the limit using .graphclientrc.yml, test.graphql, and the generated TestQueryDocument with execute. Start by reading the autoPagination README and its implementation entry point, then determine how pagination behaves when skip exceeds 5000. Done means the documented query returns more than 6000 entities without the skip validation error, with coverage for this case.

Written by the indexing model from the issue text.

Description

I have having some problems with the autoPagination feature. It seems I am unable to get more than 6000 items due to:

message: The skip argument must be between 0 and 5000, but is 6000

I followed the docs from here:

My .graphclientrc.yml is:

sources:
    - name: test
      handler:
          graphql:
              endpoint: https://api.thegraph.com/subgraphs/name/papercliplabs/compound-v3-mainnet
      transforms:
          - autoPagination:
                validateSchema: true 

documents:
    - ./test.graphql

My test.graphql is:

query TestQuery {
    transactions(first: 10000) {
        id
    }
}

And I am executing the query like so:

import { execute, TestQueryDocument } from "./.graphclient";

const result = await execute(TestQueryDocument, {});
console.log(result);

Looks like others are having the same issue

This is not really "Unlimited Pagination" as the docs say, so seems there is a bug here.
If this skip of 5000 is a limitation in the graph node, the client can still filter by ID and serve more than 6000

Dominant language
TypeScript
Stars
186
Forks
49
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from graphprotocol/graph-client

All issues in graphprotocol/graph-client

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.