The probably best way to discover the subgraph is the GraphQL Playground from thegraph itself: Try the Playground
The full documentation can be found in the repository here
If you want connect to the endpoint please use the following endpoint: https://api.thegraph.com/subgraphs/name/aavegotchi/aavegotchi-core-matic Below you can find some possible use cases:
Examples
Get traits and modified traits of specific Aavegotchi
You can get information about the traits of the gotchi with the following query
It will return an array with integers which represents the values of the six different traits. The order is: Energy, Aggression, Spookiness, Brain Size, Eye Shape, Eye Color
Its also possible to fetch present and historic listings on the bazaar. If you want to fetch all available potions. You must first fetch the itemTypeID of the items you want to fetch and insert the IDs afterwards in your getListings Query:
{
itemTypes(where:{name_contains: "Potion"}) {
name, id
}
In case you need all the data from a specifc user you fetch also the user entities. The user contains arrays of from user bought & owned portals, as well as owned gotchis.
Be sure that the ID is case sensitive and you have to provide the address as lowercase!
Get statistics
We also maintain some statistics on the subgraph. Such as portals bought, portal opened and aavegotchis claimed, but also some market data. You can query for volumes from the market: