Subgraph
A defined mapping that extracts and indexes specific blockchain data for GraphQL queries.
A defined mapping that extracts and indexes specific blockchain data for GraphQL queries.
entity.trust_high
Sep 2026 · Skóre čerstvosti: 50%
What is Subgraph?
A defined mapping that extracts and indexes specific blockchain data for GraphQL queries.
- Category
- concept
- Type
- Authority Node
- Sources
- 1
A subgraph has a manifest (data sources), schema (entities), and mappings (event handlers that transform chain data into indexed entities). Indexers run subgraphs, updating them as new blocks arrive, and serve GraphQL queries to consumers.
Subgraphs are how most dapps read on-chain data efficiently — powering UIs, analytics, and integrations without scanning raw blocks. The Graph's subgraph ecosystem is a critical data layer; subgraph quality and freshness directly affect dap
Knowledge Graph
38 relationsRelated
1. What Is a Subgraph
A subgraph is a configurable data index defined on The Graph — it specifies which blockchain events to index and how to store them, exposing a GraphQL API for dapps to query.
2. How It Works
A subgraph has a manifest (data sources), schema (entities), and mappings (event handlers that transform chain data into indexed entities). Indexers run subgraphs, updating them as new blocks arrive, and serve GraphQL queries to consumers. Anyone can deploy a subgraph; query fees and indexer incentives sustain the network.
3. Why It Matters
Subgraphs are how most dapps read on-chain data efficiently — powering UIs, analytics, and integrations without scanning raw blocks. The Graph's subgraph ecosystem is a critical data layer; subgraph quality and freshness directly affect dapp reliability.
4. Key Facts
- Written in AssemblyScript mappings over contract events
- GraphQL endpoint auto-generated from schema
- Subgraphs can be versioned and migrated
- Hosted vs decentralized subgraphs differ in trust
5. Related Concepts
- the-graph
- indexer
- data-indexing
- graphql
Frequently Asked Questions
What is Subgraph?
A defined mapping that extracts and indexes specific blockchain data for GraphQL queries.
How does Subgraph work?
A subgraph is a configurable data index defined on The Graph — it specifies which blockchain events to index and how to store them, exposing a GraphQL API for dapps to query. A subgraph has a manifest (data sources), schema (entities), and mappings (event handlers that transform chain data into ind
Why does Subgraph matter in Web3?
- indexer - data-indexing - graphql