Skip to content

[Bug] autoPagination limited at 6000 entities #584

@spennyp

Description

@spennyp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions