graphprotocol / graph-client

The Graph library for building GraphQL-based dapps in a decentralized way.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] autoPagination limited at 6000 entities

spennyp opened this issue · comments

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