Creating Subgraph Queries
Last updated
Last updated
Queries for the Carbon DeFi Subgraph can be generated using The Graph's interactive explorer. The following explains how to interact
Navigate to the interactive explorer: Carbon DeFi Subgraph
Click the folder icon on the right to open the explorer:
Select or deselect variable names to adjust the query. For example to see the latest trades and some of their relevant details, select trades and one or more variables below it.
Click the play button to see an example of the results of your current query. Once satisfied, continue.
Copy the query into your code. For example, in Python: