pangolindex / subgraph

Subgraph schema for querying the Pangolin exchange contracts
GNU General Public License v3.0
8 stars 20 forks source link

Add comments to GraphQL schema #1

Open HariSeldon23 opened 3 years ago

HariSeldon23 commented 3 years ago

I'm busy looking at building a bot that utilises the Pangolin subgraph to work out historical profitability. As part of that I've been playing with the GraphQL API at https://graph-node.avax.network/subgraphs/name/dasconnor/pangolindex

If I look at an example query I've been running: image

Just in that example I can see numerous improvements we can make to add comments to the schema. Some of these are:

A lot of these queries can be very simple answered by just including comments in the schema

veridelisi commented 3 years ago

Dear Justin How could I take any pool's swap/mint/burn/price values in historically with graphQL? Could you add any sample code?

Sincerely Engin YILMAZ