Skip to content

Commit

Permalink
Add 'id' field to GraphQL queries for improved data retrieval (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinciarka authored Nov 5, 2024
1 parent e761d74 commit d1f47de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ query GetGlobalRebalances {
amount
amountUSD
asset {
id
symbol
decimals
}
Expand Down Expand Up @@ -36,6 +37,7 @@ query GetGlobalRebalances {
id
name
inputToken {
id
symbol
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ query GetUsersActivity {
id
name
inputToken {
id
symbol
decimals
}
Expand Down
9 changes: 9 additions & 0 deletions sdk/subgraph-manager-common/src/queries/vaults.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ query GetVaults {
rewardTokens {
id
token {
id
symbol
decimals
}
Expand All @@ -17,6 +18,7 @@ query GetVaults {
id
name
inputToken {
id
name
symbol
decimals
Expand All @@ -30,11 +32,13 @@ query GetVaults {
lastUpdateTimestamp
}
inputToken {
id
name
symbol
decimals
}
outputToken {
id
name
symbol
decimals
Expand Down Expand Up @@ -66,6 +70,7 @@ query GetVault($id: ID!) {
rewardTokens {
id
token {
id
symbol
decimals
}
Expand Down Expand Up @@ -108,6 +113,7 @@ query GetVault($id: ID!) {
id
name
inputToken {
id
symbol
}
}
Expand All @@ -120,6 +126,7 @@ query GetVault($id: ID!) {
cumulativeEarnings
cumulativeWithdrawals
inputToken {
id
name
symbol
decimals
Expand All @@ -145,11 +152,13 @@ query GetVault($id: ID!) {
lastUpdateTimestamp
}
inputToken {
id
name
symbol
decimals
}
outputToken {
id
name
symbol
decimals
Expand Down

0 comments on commit d1f47de

Please sign in to comment.