A component of Subgraph that entails information pertaining to subgraph’s data sources, templates, and more.
What Is the Subgraph Manifest?
The subgraph manifest is the file that defines how specific data gets mapped from the Ethereum network to The Graph. It is written in YAML and contains the following fields:
Name: The name of the subgraph.
Description: A brief description of what the subgraph is about. This will be displayed in the explorer UI to give users context around what they are looking at.
Subgraphs are open-sourced data schemas that define how an application should store data in a decentralized database called a Graph Node. Subgraph manifests are written in GraphQL SDL and are used by Graph Nodes to create indexes of an entire blockchain and its smart contracts.
Anyone can create a subgraph using the graph-node command-line tool or the graph-node docker image. However, only curated subgraphs can be deployed on the public network of The Graph
The Graph consists of a set of subgraphs, where each subgraph describes the data requirements for an application. Subgraphs can be composed together to create more complex applications. Every subgraph has an associated manifest that describes the data requirements of the subgraph along with other metadata about the subgraph.
Everything is open-source, so anyone can create a subgraph starting with a template or by forking an existing one.
Other than Manifest, Subgraph has two other components:
Schema: This defines what data you want to index in your graph. It is very similar to the type definitions in GraphQL and uses the same schema language.
Mapping: This defines how you want to map your Ethereum data into the graph using The Graph Query Language (GQL).