Skip to content

Latest commit

 

History

History

subgraph

Gardens Subgraph 🛰

Subgraph for Gardens frontend.

Indexed data from DAOs created through the GardensTemplate.

Current deployed subgraphs

Network TheGraph HTTP endpoint
xDai Hosted Service https://api.thegraph.com/subgraphs/name/1hive/gardens-gnosis
Polygon Hosted Service https://api.thegraph.com/subgraphs/name/1hive/gardens-polygon
Goerli Hosted Service https://api.thegraph.com/subgraphs/name/1hive/gardens-goerli

Schema

Screen Shot 2021-09-01 at 19 15 09

Query example

The example show how to query a list of Gardens.

query Organizations($first: Int!, $skip: Int!, $orderBy: String!, $orderDirection: String!) {
  organizations(
    first: $first
    where: { active: true }
    skip: $skip
    orderBy: $orderBy
    orderDirection: $orderDirection
  ) {
    id
    active
    createdAt
    proposalCount
    token {
      id
      symbol
      name
      decimals
    }
    wrappableToken {
      id
      symbol
      name
      decimals
    }
    honeyLiquidity
    supporterCount
    incentivisedPriceOracle
    unipool
  }
}