When trying to fetch information regarding `token0` or `token1` in the TopPairs query, the request fails with the error: `panic processing query: only derived fields can lead to multiple children here`. #1
When trying to fetch information regarding token0 or token1 in the TopPairs query, the request fails with the error: panic processing query: only derived fields can lead to multiple children here.
Example query to produce the error:
query TopPairs { pairs(first: 5, orderBy: volumeUSD, orderDirection: desc) { id name volumeUSD token0 { id } } }
When trying to fetch information regarding
token0
ortoken1
in the TopPairs query, the request fails with the error:panic processing query: only derived fields can lead to multiple children here
.Example query to produce the error:
query TopPairs { pairs(first: 5, orderBy: volumeUSD, orderDirection: desc) { id name volumeUSD token0 { id } } }
Originally posted by @ErlendHer in https://github.com/pancakeswap/pancake-subgraph/issues/186