Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TopPairs query not working #186

Open
ErlendHer opened this issue Oct 30, 2022 · 4 comments
Open

TopPairs query not working #186

ErlendHer opened this issue Oct 30, 2022 · 4 comments

Comments

@ErlendHer
Copy link

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 } } }

@witem
Copy link

witem commented Nov 2, 2022

Same for me, the same error for different queries

@InfernalHeir
Copy link

InfernalHeir commented Nov 14, 2022

Yes exactly I got the same error,

@itsrebil
Copy link

Getting the same error on calling Api https://api.pancakeswap.info/api/v2/tokens/0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82

Error:
{"error":{"code":500,"message":"GraphQL error: panic processing query: only derived fields can lead to multiple children here"}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@witem @InfernalHeir @itsrebil @ErlendHer and others