Skip to content

Instantly share code, notes, and snippets.

@emailnjv
Created May 22, 2019 19:54
Show Gist options
  • Save emailnjv/deea1118e40065a1399d29d70e936b68 to your computer and use it in GitHub Desktop.
Save emailnjv/deea1118e40065a1399d29d70e936b68 to your computer and use it in GitHub Desktop.
query user($uuid: uuid) {
user(where: { uuid: { _eq: $uuid } }) {
user2holding: Users_to_Holdings {
holding_address
id
holdings: Holding {
token_name
token: Token {
symbol
marketData: Market_Data(limit: 1, order_by: { created_at: desc }) {
market_cap
price
price_change_24h
tx_usd_volume
}
Stake_Data(limit: 1, order_by: { created_at: desc }) {
active_delegates
apr
staking_rate
active_delegates
tx_volume
unbonding_period
}
}
updates: Holdings_Updates {
balance
delegate
difference
epoch
fee
holding_address
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment