GraphQL Recipes

Copy/paste queries for the Envio indexer (https://indexer.hyperindex.xyz/0bf0e0f/v1/graphql). Adapt filters as needed.

All Gardens

query AllGardens {
  Garden {
    id
    name
    location
    chainId
    gardeners
    operators
    createdAt
  }
}

Garden by ID with Stats

query GardenWithStats($gardenId: String!) {
  Garden(where: {id: {_eq: $gardenId}}) {
    id
    name
    location
    gapProjectUID
    workAggregate: Work_aggregate {
      aggregate { count }
    }
    approvedAggregate: Work_aggregate(where: {approvals: {approved: {_eq: true}}}) {
      aggregate { count }
    }
  }
}

All Actions for a Garden

Pending Work (Awaiting Approval)

Approved Work with Feedback

Live Subscription (New Approvals)

Filter by Time Range

ℹ️ Need more? Check the full API & Integration Reference.

Last updated