Skip to content

Commit

Permalink
feat: add more filter
Browse files Browse the repository at this point in the history
  • Loading branch information
HuberTRoy committed May 10, 2024
1 parent ea44c53 commit db71bea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/network-query/queries/network/delegations.gql
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ fragment DelegationFields on Delegation {
amount
}

query GetIndexerDelegators($id: String!, $offset: Int, $first: Int = 10) {
query GetIndexerDelegators($id: String!, $offset: Int, $eraId: Int = 0, $first: Int = 10) {
indexer(id: $id) {
delegations(
offset: $offset
first: $first
filter: { delegatorId: { notEqualTo: $id } }
filter: {
delegatorId: { notEqualTo: $id }
or: [{ exitEra: { isNull: true } }, { exitEra: { equalTo: $eraId } }]
}
orderBy: AMOUNT_DESC
) {
totalCount
Expand Down

0 comments on commit db71bea

Please sign in to comment.