centrifuge / pools-subql

Subquery for Pools on Centrifuge
MIT License
1 stars 4 forks source link

fix: enable query aggregate for deployments #99

Closed sophialittlejohn closed 5 months ago

sophialittlejohn commented 5 months ago

queryAggregate enabled on recommendation from subql team. The flag allows us to query like this

query {
    poolSnapshots {
      nodes {
         pool {
          currency {
            decimals
          }
        }
      }
    }
  }

Without the flag, the query only returns the poolId.