Build and Publish a Subgraph: Subgraph Studio Tutorial

Added:

Setup Init
Schema Design
Config Codegen
Mapping Logic
Deploy Graph
Publish Signal

Setup Init

0:01
Playing Section
  • 1

    Connect MetaMask to The Graph Studio.

  • 2

    Create and name a new subgraph project.

Fundamental understanding of EVM-compatible blockchains, smart contracts, and how contract events are emitted.
Basic proficiency with TypeScript or AssemblyScript syntax, as mapping handlers are written in a TypeScript-like language.
Familiarity with GraphQL core concepts, specifically defining schemas and writing basic queries.
Familiarity with using the Command Line Interface (CLI) and package managers like npm or yarn.
Integrating published subgraphs into frontend decentralized applications (dApps) using React and Apollo Client.
Implementing advanced subgraph features such as dynamic data sources (templates), full-text search, and IPFS data indexing.
Deploying and migrating subgraphs to the decentralized Graph Network, including understanding curation, GRT billing, and indexer dynamics.
Optimizing subgraph performance, handling blockchain reorgs, and debugging mapping errors using graph-node logs.
19.8K views285likes11:56@GraphProtocolOriginal Release: 2021-07-08

This video tutorial demonstrates how to create, test, and publish a subgraph to The Graph's decentralized network using Subgraph Studio, Graph CLI, and Graph TypeScript library. The process involves connecting a MetaMask wallet, creating a subgraph project, defining a GraphQL schema with entities for tokens and users, configuring subgraph.yaml with smart contract ABI and event handlers, generating TypeScript types with codegen, implementing mapping functions to handle token events, deploying the subgraph using the deploy key, and publishing to test networks like Rinkeby while participating in signaling to become a curator.