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

[Indexer API] limit argument isn't respected in nested fields #607

Open
vasil-nesterov opened this issue Nov 14, 2024 · 0 comments
Open
Labels
indexer-api Issues relating to the Indexer API

Comments

@vasil-nesterov
Copy link

Description

limit argument isn't respected in nested fields.
offset works as expected.

Repro

query MyQuery {
  token_activities_v2_aggregate(where: {transaction_version: {_eq: 308428260}}) {
    aggregate {
      count
    }
  }
}

Returns 600.

query MyQuery2 {
  account_transactions(
    where: {
      transaction_version: {_eq: 308428260}, 
      account_address: {_eq: "0x4dbdb1d21b7421a8f5c29219efe85d62a3638aff00d2eae9ab744a129048a338"}
    }
  ) {
    account_address
    token_activities_v2(limit: 200) {
      __typename
    }
  }
}

Returns 100 records in token_activities_v2 no matter what limit is.

Same problem with fungible_asset_activities nested in account_transactions.

@vasil-nesterov vasil-nesterov added the indexer-api Issues relating to the Indexer API label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
indexer-api Issues relating to the Indexer API
Projects
None yet
Development

No branches or pull requests

1 participant