Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] autoPagination limited at 6000 entities #584

Open
spennyp opened this issue Oct 26, 2023 · 0 comments
Open

[Bug] autoPagination limited at 6000 entities #584

spennyp opened this issue Oct 26, 2023 · 0 comments

Comments

@spennyp
Copy link

spennyp commented Oct 26, 2023

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

@spennyp spennyp changed the title autoPagination limited at 6000 entities [Bug] autoPagination limited at 6000 entities Oct 26, 2023
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

No branches or pull requests

1 participant