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

[Feature Request] Support sort on groupedAggregates. #2597

Open
3 tasks done
HuberTRoy opened this issue Nov 22, 2024 · 0 comments
Open
3 tasks done

[Feature Request] Support sort on groupedAggregates. #2597

HuberTRoy opened this issue Nov 22, 2024 · 0 comments

Comments

@HuberTRoy
Copy link
Member

Prerequisites

  • Are you running the latest version(s)?
  • Have you searched the documentation for your issue?
  • Did you search for an existing issue or pull request?

Description

https://explorer.subquery.network/subquery/subquery/subquery-mainnet

{
  eraRewards(orderBy: ERA_IDX_DESC) {
    groupedAggregates(groupBy: ERA_IDX) {
      keys
      sum {
        amount
      }
    }
  }
}

The result is

eraRewards {
    groupedAggregates [{
       keys: ["2"] 
   }, { keys: ["3"] } ...]
}

Expect:

eraRewards {
    groupedAggregates [{
       keys: ["3"] 
   }, { keys: ["2"] } ...]
}
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