Skip to content

Commit 8b9cb84

Browse files
committed
more edits
1 parent 02c3f9c commit 8b9cb84

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

website/pages/en/quick-start.mdx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Quick Start
33
---
44

5-
Learn how to easily publish and query a subgraph on The Graph.
5+
Learn how to easily publish and query a [subgraph](/developing/developer-faqs/#1-what-is-a-subgraph) on The Graph.
66

77
## Prerequisites for this guide
88

@@ -35,10 +35,10 @@ If your contract has events, the `init` command will automatically create a scaf
3535

3636
#### Create via Graph CLI
3737

38-
Use the following command to create a subgraph in Subgraph Studio using CLI:
38+
Use the following command to create a subgraph in Subgraph Studio using the CLI:
3939

4040
```sh
41-
init --product subgraph-studio
41+
graph init --product subgraph-studio
4242
```
4343

4444
#### Create via Subgraph Studio
@@ -48,7 +48,7 @@ Subgraph Studio has a staging environment where you can create, manage, deploy,
4848
1. Go to [Subgraph Studio](https://thegraph.com/studio/) and connect your wallet.
4949
2. Click “Create a Subgraph". It is recommended to name the subgraph in Title Case: "Subgraph Name Chain Name".
5050

51-
For additional information on subgraph creation and CLI, see [Creating a Subgraph](/developing/creating-a-subgraph).
51+
For additional information on subgraph creation and the Graph CLI, see [Creating a Subgraph](/developing/creating-a-subgraph).
5252

5353
### 3. Initialize Your Subgraph
5454

@@ -60,7 +60,7 @@ The following command initializes your subgraph from an existing contract:
6060
graph init --studio <SUBGRAPH_SLUG>
6161
```
6262

63-
> _Note: If your contract was verified on Etherscan, then the ABI will automatically be created in the CLI._
63+
> Note: If your contract was verified on Etherscan, then the ABI will automatically be created in the CLI.
6464
6565
You can find commands for your specific subgraph on the subgraph page in [Subgraph Studio](https://thegraph.com/studio/).
6666

@@ -110,7 +110,9 @@ Remember, deploying is not the same as publishing.
110110
2. Authenticate and deploy your subgraph. The deploy key can be found on the Subgraph page in Subgraph Studio.
111111

112112
```sh
113+
113114
graph auth --studio <DEPLOY_KEY>
115+
114116
graph deploy --studio <SUBGRAPH_SLUG>
115117
```
116118

@@ -123,10 +125,9 @@ If you’d like to examine your subgraph before publishing it to the network, yo
123125

124126
- Run a sample query.
125127
- Analyze your subgraph in the dashboard to check information.
126-
- Check the logs on the dashboard to see if there are any errors with your subgraph.
127-
- The logs of an operational subgraph will look like this:
128+
- Check the logs on the dashboard to see if there are any errors with your subgraph. The logs of an operational subgraph will look like this:
128129

129-
![Subgraph logs](/img/subgraph-logs-image.png)
130+
![Subgraph logs](/img/subgraph-logs-image.png)
130131

131132
### 7. Publish Your Subgraph to The Graph Network
132133

@@ -144,15 +145,15 @@ As of version 0.73.0, you can also publish your subgraph with the Graph CLI.
144145
1. Open the `graph-cli`.
145146
2. Use the following commands:
146147

147-
```sh
148-
graph codegen && graph build
149-
```
148+
```sh
149+
graph codegen && graph build
150+
```
150151

151-
Then,
152+
Then,
152153

153-
```sh
154-
graph publish
155-
```
154+
```sh
155+
graph publish
156+
```
156157

157158
3. A window will open, allowing you to connect your wallet, add metadata, and deploy your finalized subgraph to a network of your choice.
158159

@@ -178,6 +179,6 @@ To save on gas costs, you can curate your subgraph in the same transaction you p
178179

179180
### 8. Query Your Subgraph
180181

181-
Now, you can query your subgraph by sending GraphQL queries to your subgraph’s Query URL, which you can find by clicking the Query button.
182+
Now, you can query your subgraph by sending GraphQL queries to it's Query URL, which you can find by clicking the Query button.
182183

183184
For more information about querying data from your subgraph, read [Querying The Graph](/querying/querying-the-graph/).

0 commit comments

Comments
 (0)