Learn how to create a subgraph and write your GraphQL Schema, handlers, and subgraph manifest.
Every subgraph is a collection of GraphQL, AssemblyScript / Typescript, and YAML code that follows the same structure. Go through the following guides to learn how to create your subgraph and iterate on the code:
Page | Description |
---|---|
Graph CLI | Learn how to work with the open-source graph-cli package. |
Creating a Subgraph | Create your subgraph from scratch or an existing contract. |
Project Structure | Understand the project structure of a subgraph and important files (schema.graphql, subgraph.yaml). |
Data Sources | Define your input data sources from on-chain smart contracts. |
Writing Mappings | Write AssemblyScript mappings for transforming input data into your GraphQL API. |