I am trying to get Pancake-Pair data by quering the subgraph (Hosted at : https://thegraph.com/hosted-service/subgraph/mmontes11/pancakeswap
) .
I want to filter data by pair-contract address . I thought of writing it in the where clause .
Something like this :
pairHourDatas(
first: 24
where: { pair: "Pancake_lp_address" }
orderBy: hourStartUnix
orderDirection: desc
) {
id
hourStartUnix
reserve0
reserve1
reserveUSD
pair {
token0 {
id
}
token1 {
id
}
}
}
But the query is incorrect . Is this the correct query format . If not how can I query this specific endpoint .