22title : Migrate Your Subgraph From Alchemy to The Graph Network
33---
44
5- ## Migrate Your Subgraph From Alchemy to The Graph Network
6-
7- ## Goal
8-
9- Migrate or deploy an existing Subgraph to ** The Graph** .
5+ Migrate or deploy an existing Subgraph to ** [ The Graph] ( https://thegraph.com/ ) ** .
106
117## Overview
128
@@ -20,7 +16,7 @@ This guide walks you through:
2016
2117## 1. Prerequisites
2218
23- You’ ll need:
19+ You' ll need:
2420
2521- Your subgraph source code (` subgraph.yaml ` , ` schema.graphql ` , ` src/mapping.ts ` )
2622- [ Node.js] ( https://nodejs.org ) , Yarn, and ` graph-cli ` :
@@ -37,14 +33,14 @@ Install and authenticate the CLI:
3733
3834``` bash
3935npm install -g @graphprotocol/graph-cli
40- graph auth --studio < YOUR_ACCESS_TOKEN>
36+ graph auth < YOUR_ACCESS_TOKEN>
4137```
4238
4339---
4440
4541## 3. Prepare and Build Your Subgraph
4642
47- If you don’ t already have a project, initialize one from a contract:
43+ If you don' t already have a project, initialize one from a contract:
4844
4945``` bash
5046graph init --from-contract < CONTRACT_ADDRESS> < SUBGRAPH_NAME>
@@ -119,7 +115,7 @@ graph subgraph list
119115
120116## 7. Update Your Application
121117
122- Your subgraph’ s GraphQL endpoint follows this format:
118+ Your subgraph' s GraphQL endpoint follows this format:
123119
124120```
125121https://api.studio.thegraph.com/query/{user_id}/{subgraph_slug}/{version}
0 commit comments