Overview
A subgraph is a defined mapping that extracts and indexes specific blockchain data for GraphQL queries. It tells an indexer what data to track and how to store it. It is the unit of indexing on The Graph.
How It Works
A developer defines a subgraph with the contract events and entities to index, then deploys it to the network. Indexers run the subgraph and serve queries. Applications query it via GraphQL.
Why It Matters
Subgraphs make blockchain data queryable and composable, standardizing data access for dapps. They reduce development overhead. They are a core part of the Web3 data stack.
Related Concepts
Subgraphs are part of The Graph and Indexer infrastructure. They enable GraphQL queries on Blockchain Data.